Type Definition P2
valora
type P2 = Point;
A two dimensional point.
impl Rotate for P2
fn rotate(self, pivot: P2, theta: Angle) -> Self
impl Translate for P2
fn translate(self, translation: V2) -> Self
Translate self by the given translation vector.
self
fn translate_along(self, direction: Angle, distance: f32) -> Self
Translate self along the given direction.