[][src]Trait rust_3d::IsNormalized3D

pub trait IsNormalized3D: Sized + Is3D {
    fn new<P>(p: P) -> Result<Self>
    where
        P: Is3D
; fn norm_x() -> Self { ... }
fn norm_y() -> Self { ... }
fn norm_z() -> Self { ... }
fn norm_x_neg() -> Self { ... }
fn norm_y_neg() -> Self { ... }
fn norm_z_neg() -> Self { ... } }

IsNormalized3D is a trait used for types which are positioned within the 3D space and normalized

Required methods

fn new<P>(p: P) -> Result<Self> where
    P: Is3D

Should construct a new object and only fail if it can't be normalized

Loading content...

Provided methods

fn norm_x() -> Self

Returns a new normalized object which only points in the positive x-Direction

fn norm_y() -> Self

Returns a new normalized object which only points in the positive y-Direction

fn norm_z() -> Self

Returns a new normalized object which only points in the positive z-Direction

fn norm_x_neg() -> Self

Returns a new normalized object which only points in the negative x-Direction

fn norm_y_neg() -> Self

Returns a new normalized object which only points in the negative y-Direction

fn norm_z_neg() -> Self

Returns a new normalized object which only points in the negative z-Direction

Loading content...

Implementors

impl IsNormalized3D for Norm3D[src]

Loading content...