Struct gdnative_visual_script::common::geom::euclid::HomogeneousVector[]

#[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>

Constructor taking scalar values directly.

impl<T, U> HomogeneousVector<T, U> where
    T: Zero + Copy + Div<T, Output = T> + PartialOrd<T>, 

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, U> Eq for HomogeneousVector<T, U> where
    T: Eq

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

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

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

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

impl<T, U> From<TypedVector2D<T, U>> for HomogeneousVector<T, U> where
    T: Zero

Performs the conversion.

impl<T, U> From<TypedPoint2D<T, U>> for HomogeneousVector<T, U> where
    T: Zero + One

Performs the conversion.

impl<T, U> From<TypedPoint3D<T, U>> for HomogeneousVector<T, U> where
    T: One

Performs the conversion.

impl<T, U> From<TypedVector3D<T, U>> for HomogeneousVector<T, U> where
    T: Zero

Performs the conversion.

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

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

This method tests for !=.

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