[][src]Struct nova_math::vector::TVec4

pub struct TVec4<T: Real> { /* fields omitted */ }

A generic 4 component vector

Methods

impl<T: Real> TVec4<T>[src]

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

Constructs a new Vec4

pub fn zero() -> Self[src]

Trait Implementations

impl<T: Real> Lerp<T> for TVec4<T>[src]

impl<T: Real> IntoRadians for TVec4<T>[src]

impl<T: Real> IntoDegrees for TVec4<T>[src]

impl<T: Real> DotProduct<T> for TVec4<T>[src]

impl<T: Real> IntoSTD140 for TVec4<T>[src]

type Output = TVec4P<T>

impl<T: Real> Length for TVec4<T>[src]

type Output = T

impl<T: Real> LengthSquared for TVec4<T>[src]

type Output = T

impl<T: Real> Normalize for TVec4<T>[src]

impl<T: Real> NormalizeAssign for TVec4<T>[src]

impl<T: Real> From<TVec4<T>> for TVec2<T>[src]

fn from(other: TVec4<T>) -> Self[src]

Take the xy components of a Vec4 and produce a Vec2

impl<T: Real> From<TVec4<T>> for TVec3<T>[src]

impl<T: Real> From<T> for TVec4<T>[src]

impl<T: Real> From<TVec2<T>> for TVec4<T>[src]

impl<T: Real> From<TVec3<T>> for TVec4<T>[src]

impl<T: Real> From<[T; 4]> for TVec4<T>[src]

fn from(other: [T; 4]) -> Self[src]

Take the array as a vector

impl<T: Real> From<TVec4<T>> for TVec4P<T>[src]

impl<T: Real> Display for TVec4<T>[src]

impl<T: Debug + Real> Debug for TVec4<T>[src]

impl<T: Real> Div<TVec4<T>> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the / operator.

impl<T: Real> Div<T> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the / operator.

impl<T: Real> Sub<TVec4<T>> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the - operator.

impl<T: Real> Sub<T> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the - operator.

impl<T: Real> PartialEq<TVec4<T>> for TVec4<T>[src]

impl<T: Real> Add<TVec4<T>> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the + operator.

impl<T: Real> Add<T> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the + operator.

impl<T: Real> Mul<TVec4<T>> for TMat4x4<T>[src]

type Output = TVec4<T>

The resulting type after applying the * operator.

impl<T: Real> Mul<TVec4<T>> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the * operator.

impl<T: Real> Mul<T> for TVec4<T>[src]

type Output = TVec4<T>

The resulting type after applying the * operator.

impl<T: Real> Neg for TVec4<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Real> AddAssign<TVec4<T>> for TVec4<T>[src]

impl<T: Real> AddAssign<T> for TVec4<T>[src]

impl<T: Real> SubAssign<TVec4<T>> for TVec4<T>[src]

impl<T: Real> SubAssign<T> for TVec4<T>[src]

impl<T: Real> MulAssign<TVec4<T>> for TVec4<T>[src]

impl<T: Real> MulAssign<T> for TVec4<T>[src]

impl<T: Real> DivAssign<TVec4<T>> for TVec4<T>[src]

impl<T: Real> DivAssign<T> for TVec4<T>[src]

impl<T: Real> Index<usize> for TVec4<T>[src]

type Output = T

The returned type after indexing.

impl<T: Real> IndexMut<usize> for TVec4<T>[src]

impl<T: Copy + Real> Copy for TVec4<T>[src]

impl<T: Real> Into<[T; 4]> for TVec4<T>[src]

impl<T: Clone + Real> Clone for TVec4<T>[src]

Auto Trait Implementations

impl<T> Unpin for TVec4<T> where
    T: Unpin

impl<T> Send for TVec4<T> where
    T: Send

impl<T> Sync for TVec4<T> where
    T: Sync

impl<T> UnwindSafe for TVec4<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for TVec4<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> IntoRadians for T where
    T: Real + Pi
[src]

impl<T> IntoDegrees for T where
    T: Real + Pi
[src]

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

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]