Trait rust_3d::traits::IsNormalized2D
[−]
[src]
pub trait IsNormalized2D: Is2D { fn new<P>(p: P) -> Result<Box<Self>>
where
P: Is2D; fn norm_x() -> Self; fn norm_y() -> Self; }
IsNormalized2D is a trait used for types which are positioned within the 2D space and normalized
Required Methods
fn new<P>(p: P) -> Result<Box<Self>> where
P: Is2D,
P: Is2D,
Should return a new normalized object
fn norm_x() -> Self
Should return a new normalized object which only points in the x-Direction
fn norm_y() -> Self
Should return a new normalized object which only points in the y-Direction
Implementors
impl IsNormalized2D for Norm2D