pub fn apply_heading(&self, mut heading: Vector) -> Point {
        heading.normalize();
        Point {
            x: self.x * heading.y - self.y * -heading.x,
            y: self.y * heading.y + self.x * -heading.x
        }
    }
/// Rotates the point based on the heading
Rotates the point based on the heading
Rotates the point based on the heading
pub fn apply_heading(&self, mut heading: Vector) -> Point {
        heading.normalize();
        Point {
            x: self.x * heading.y - self.y * -heading.x,
            y: self.y * heading.y + self.x * -heading.x
        }
    }
pub fn apply_heading ( & self , mut heading : Vector ) -> Point { heading . normalize ( ) ; Point { x : self . x * heading . y - self . y * - heading . x , y : self . y * heading . y + self . x * - heading . x } }
Rotates the point based on the heading
Rotates the point based on the heading
&self
heading
Vector
&self
heading
Vector