Trait pizarra::point::Point[][src]

pub trait Point: Sized + Copy + PartialEq + Add<Output = Self> + Sub<Output = Self> + Mul<f64, Output = Self> + Div<f64, Output = Self> {
Show 14 methods fn new(x: f64, y: f64) -> Self;
fn x(&self) -> f64;
fn y(&self) -> f64; fn to_a(self) -> [f64; 2] { ... }
fn to_vec2d(self) -> Vec2D { ... }
fn magnitude(&self) -> f64 { ... }
fn distance(&self, other: Self) -> f64 { ... }
fn abs(self) -> Self { ... }
fn min(self, other: Self) -> Vec2DWorld { ... }
fn max(self, other: Self) -> Vec2DWorld { ... }
fn dot(self, other: Self) -> f64 { ... }
fn is_nan(&self) -> bool { ... }
fn unit(self) -> Self { ... }
fn angle(self) -> Angle { ... }
}

Required methods

Provided methods

Implementors