Struct glm::Vector4 [] [src]

#[repr(C)]
pub struct Vector4<T: Primitive> { pub x: T, pub y: T, pub z: T, pub w: T, }

Fields

Methods

impl<T: Primitive> Vector4<T>
[src]

impl<T: Primitive> Vector4<T>
[src]

Truncates self to a Vector3 by remove the ith element.

Parameter i is 0 based index.

Panic

It is a panic if i is larger than 3.

Trait Implementations

impl<T: Copy + Primitive> Copy for Vector4<T>
[src]

impl<T: Clone + Primitive> Clone for Vector4<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq + Primitive> PartialEq for Vector4<T>
[src]

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

This method tests for !=.

impl<T: Debug + Primitive> Debug for Vector4<T>
[src]

Formats the value using the given formatter.

impl<T: Primitive> GenVec<T> for Vector4<T>
[src]

Returns the dimension of the vector. Read more

impl<T: Primitive> Index<usize> for Vector4<T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<T: Primitive> IndexMut<usize> for Vector4<T>
[src]

The method for the mutable indexing (container[index]) operation

impl<T: Primitive> Rand for Vector4<T>
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl<T: Primitive + Arbitrary> Arbitrary for Vector4<T>
[src]

impl Eq for Vector4<bool>
[src]

impl GenBVec for Vector4<bool>
[src]

Returns true if all components of the receiver are true. Read more

Returns true if there is any component of the receiver is true. Read more

Returns the component-wise logical complement of the receiver. Read more

impl<T: BaseNum> Add<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: BaseNum> Add<T> for Vector4<T>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: BaseNum> Mul<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: BaseNum> Mul<T> for Vector4<T>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T: BaseNum> Div<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T: BaseNum> Div<T> for Vector4<T>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T: BaseNum> Rem<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the % operator

The method for the % operator

impl<T: BaseNum> Rem<T> for Vector4<T>
[src]

The resulting type after applying the % operator

The method for the % operator

impl<T: BaseNum> One for Vector4<T>
[src]

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

impl<T: BaseNum> Zero for Vector4<T>
[src]

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

Returns true if self is equal to the additive identity.

impl<T: BaseNum> GenNum<T> for Vector4<T>
[src]

Constructs from a scalar number.

impl<T: BaseNum> GenNumVec<T> for Vector4<T>
[src]

Returns the sum of all components. # Example Read more

Multiplies all components. Read more

Returns the minimal value of all components. Read more

Returns the maximal value of all components. Read more

impl<T: SignedNum + BaseNum> Neg for Vector4<T>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<T: SignedNum + BaseNum> Sub<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T: SignedNum + BaseNum> Sub<T> for Vector4<T>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T: SignedNum + BaseNum> SignedNum for Vector4<T>
[src]

Returns the absolute value of the receiver.

Returns the sign number of the receiver. Read more

impl<T: BaseInt> Eq for Vector4<T>
[src]

impl<T: BaseInt> Not for Vector4<T>
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl<T: BaseInt> BitAnd<T> for Vector4<T>
[src]

The resulting type after applying the & operator

The method for the & operator

impl<T: BaseInt> BitAnd<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the & operator

The method for the & operator

impl<T: BaseInt> BitOr<T> for Vector4<T>
[src]

The resulting type after applying the | operator

The method for the | operator

impl<T: BaseInt> BitOr<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the | operator

The method for the | operator

impl<T: BaseInt> BitXor<T> for Vector4<T>
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl<T: BaseInt> BitXor<Vector4<T>> for Vector4<T>
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl<T: BaseInt> Shl<usize> for Vector4<T>
[src]

The resulting type after applying the << operator

The method for the << operator

impl<T: BaseInt> Shr<usize> for Vector4<T>
[src]

The resulting type after applying the >> operator

The method for the >> operator

impl<T: BaseInt> GenInt<T> for Vector4<T>
[src]

impl<T: BaseFloat> ApproxEq for Vector4<T>
[src]

Returns true if the difference between x and y is less than max_diff. Read more

Returns true if the difference between x and y is less than machine epsilon. Read more

impl<T: BaseFloat> GenFloat<T> for Vector4<T>
[src]

Computes and returns a * b + c.

impl<T: BaseFloat> GenFloatVec<T> for Vector4<T>
[src]