[][src]Struct rgx::math::algebra::Vector4

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

4D vector.

Fields

x: Sy: Sz: Sw: S

Methods

impl<S> Vector4<S>[src]

pub const fn new(x: S, y: S, z: S, w: S) -> Self[src]

Trait Implementations

impl<S> Add<Vector4<S>> for Vector4<S> where
    S: Add<Output = S> + Copy
[src]

type Output = Self

The resulting type after applying the + operator.

impl<S: Clone> Clone for Vector4<S>[src]

impl<S: Copy> Copy for Vector4<S>[src]

impl<S: Debug> Debug for Vector4<S>[src]

impl<S: Eq> Eq for Vector4<S>[src]

impl<T: Copy> From<[T; 4]> for Vector4<T>[src]

impl From<Vector4<f32>> for [f32; 4][src]

impl<S: Hash> Hash for Vector4<S>[src]

impl<S> Mul<S> for Vector4<S> where
    S: Mul<Output = S> + Copy
[src]

type Output = Self

The resulting type after applying the * operator.

impl<S> Mul<Vector4<S>> for Vector4<S> where
    S: Mul<Output = S> + Add<Output = S> + Copy
[src]

type Output = S

The resulting type after applying the * operator.

impl<S: PartialEq> PartialEq<Vector4<S>> for Vector4<S>[src]

impl<S> StructuralEq for Vector4<S>[src]

impl<S> StructuralPartialEq for Vector4<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Vector4<S> where
    S: RefUnwindSafe

impl<S> Send for Vector4<S> where
    S: Send

impl<S> Sync for Vector4<S> where
    S: Sync

impl<S> Unpin for Vector4<S> where
    S: Unpin

impl<S> UnwindSafe for Vector4<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.