Struct euclid::HomogeneousVector[][src]

#[repr(C)]
pub struct HomogeneousVector<T, U> { pub x: T, pub y: T, pub z: T, pub w: T, // some fields omitted }

Homogeneous vector in 3D space.

Fields

Methods

impl<T, U> HomogeneousVector<T, U>
[src]

Constructor taking scalar values directly.

impl<T: Copy + Div<T, Output = T> + Zero + PartialOrd, U> HomogeneousVector<T, U>
[src]

Convert into Cartesian 2D point.

Returns None if the point is on or behind the W=0 hemisphere.

Convert into Cartesian 3D point.

Returns None if the point is on or behind the W=0 hemisphere.

Trait Implementations

impl<T: Clone, U> Clone for HomogeneousVector<T, U>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy, U> Copy for HomogeneousVector<T, U>
[src]

impl<T, U> Eq for HomogeneousVector<T, U> where
    T: Eq
[src]

impl<T, U> PartialEq for HomogeneousVector<T, U> where
    T: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T, U> Hash for HomogeneousVector<T, U> where
    T: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Zero, U> From<TypedVector2D<T, U>> for HomogeneousVector<T, U>
[src]

Performs the conversion.

impl<T: Zero, U> From<TypedVector3D<T, U>> for HomogeneousVector<T, U>
[src]

Performs the conversion.

impl<T: Zero + One, U> From<TypedPoint2D<T, U>> for HomogeneousVector<T, U>
[src]

Performs the conversion.

impl<T: One, U> From<TypedPoint3D<T, U>> for HomogeneousVector<T, U>
[src]

Performs the conversion.

impl<T: Debug, U> Debug for HomogeneousVector<T, U>
[src]

Formats the value using the given formatter. Read more

impl<T: Display, U> Display for HomogeneousVector<T, U>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, U> Send for HomogeneousVector<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for HomogeneousVector<T, U> where
    T: Sync,
    U: Sync