Rust Error: no method named `subtractPointFromPoint` found for type `()` in the current scope : So I have started creating a gaming graphics engine using [this](https://gamedevelopment.tutsplus.com/tutorials/lets-build-a-3d-graphics-engine-points-vectors-and-basic-concepts--gamedev-8143) article. I have chosen rust to create it in because I have heard about it and it sounds perfect for creating games. The only problem is I have no experience whatsoever (I have used python, javascript, java and html before).

This is the code I have written so far:

**point.rs**

    // Point class
    
    // Operators
    struct point {
    	x: i32,
    	y: i32,
    	z: i32
    }
    
    // Variables
    pub fn new(x: i32, y: i32, z:i32) {
    	let mut point = (x, y, z);
    	//return point;
    
    	impl point {
    		fn addVectorToPoint(self: &point, (x, y, z): (i32, i32, i32)) {
    			let mut x = x + &self.x;
    			let mut y = y + &self.y;
    			let mut z = z + &self.z;
    			let mut point = (x, y, z);
    		}
    		fn subtractVectorFromPoint(self: &point, (x, y, z): (i32, i32, i32)) {
    			let mut x = &self.x - x;
    			let mut y = &self.y - y;
    			let mut z = &self.z - z;
    			let mut point = (x, y, z);
    		}
    		fn subtractPointFromPoint(self: &point, (x, y, z): (i32, i32, i32)) {
    			let mut x = &self.x - x;
    			let mut y = &self.y - y;
    			let mut z = &self.z - z;
    			let mut vector = (x, y, z);
    		}
    	}
    }

**main.rs**

    mod point;
    
    fn main() {
        let point1 = point::new(1, 2, 3);
        let point2 = point::new(3, 2, 1);
        let newPoint = point1.subtractPointFromPoint(point2);
        println!("{:?}", newPoint);
    }

Anyway, when I run it, I get this:

    $ cargo run
       Compiling blaze v0.1.0
    error[E0599]: no method named `subtractPointFromPoint` found for type `()` in the current scope
     --> src/main.rs:6:27
      |
    6 |     let newPoint = point1.subtractPointFromPoint(point2);
      |                           ^^^^^^^^^^^^^^^^^^^^^^
    
    error: aborting due to previous error
    
    error: Could not compile `blaze`.
    
    To learn more, run the command again with --verbose.

Please tell me what I am doin wrong. Also, if my code is really inefficient, any suggestions will be greatly appreciated!

Thanks in advance!