pub fn rotate(self, angle: Rotation) -> Self {
		let (sin, cos) = angle.sin_cos();

		Position::new(self.x * cos - self.y * sin, self.x * sin + self.y * cos)
	}
/// Rotate a vector around the origin by `angle`.
Rotate a vector around the origin by `angle`.
Rotate a vector around the origin by ` angle ` .
pub fn rotate(self, angle: Rotation) -> Self {
		let (sin, cos) = angle.sin_cos();
		Position::new(self.x * cos - self.y * sin, self.x * sin + self.y * cos)
	}
pub fn rotate ( self , angle : Rotation ) -> Self { let ( sin , cos ) = angle . sin_cos ( ) ; Position :: new ( self . x * cos - self . y * sin , self . x * sin + self . y * cos ) }
Rotate a vector around the origin by `angle`.
Rotate a vector around the origin by ` angle ` .
self
angle
Rotation
self
angle
Rotation