Struct nbez::Vector4d [] [src]

pub struct Vector4d<F: Float> {
    pub x: F,
    pub y: F,
    pub z: F,
    pub w: F,
}

4-dimensional vector

Fields

Methods

impl<F: Float> Vector4d<F>
[src]

Convenience method for creating a new instance of this struct. Fields of this function correspond to fields of the struct.

impl<F: Float> Vector4d<F>
[src]

Get the length of this vector, with the Pythagorean theorem

Return a vector that points in the same direction as self, but has a length of one.

Trait Implementations

impl<F: Default + Float> Default for Vector4d<F>
[src]

Returns the "default value" for a type. Read more

impl<F: Debug + Float> Debug for Vector4d<F>
[src]

Formats the value using the given formatter.

impl<F: Clone + Float> Clone for Vector4d<F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Copy + Float> Copy for Vector4d<F>
[src]

impl<F: PartialEq + Float> PartialEq for Vector4d<F>
[src]

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

This method tests for !=.

impl<F: Eq + Float> Eq for Vector4d<F>
[src]

impl<F: PartialOrd + Float> PartialOrd for Vector4d<F>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<F: Ord + Float> Ord for Vector4d<F>
[src]

This method returns an Ordering between self and other. Read more

impl<F: Hash + Float> Hash for Vector4d<F>
[src]

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

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

impl<F: Float> From<[F; 4]> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> Into<[F; 4]> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> Into<(F, F, F, F)> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> From<Point4d<F>> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> AsRef<[F]> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> AsMut<[F]> for Vector4d<F>
[src]

Performs the conversion.

impl<F: Float> Zero for Vector4d<F>
[src]

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

impl<F: Float> One for Vector4d<F>
[src]

Returns the multiplicative identity element of Self, 1. Read more

impl<F: Float> Add<Point4d<F>> for Vector4d<F>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<F: Float> Sub<Point4d<F>> for Vector4d<F>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<F: Float> Mul<Point4d<F>> for Vector4d<F>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<F: Float> Div<Point4d<F>> for Vector4d<F>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<F: Float> Add<Vector4d<F>> for Vector4d<F>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<F: Float> Sub<Vector4d<F>> for Vector4d<F>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<F: Float> Mul<Vector4d<F>> for Vector4d<F>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<F: Float> Div<Vector4d<F>> for Vector4d<F>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<F: Float> Mul<F> for Vector4d<F>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<F: Float> Div<F> for Vector4d<F>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<F: Float> Neg for Vector4d<F>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<F: Float> PVOps<F> for Vector4d<F>
[src]

impl<F: Float> Vector<F> for Vector4d<F>
[src]