[][src]Struct hektor::Vec4

pub struct Vec4 { /* fields omitted */ }

Four-dimensional vector: x, y, z, and w.

Internally, this is four 16-byte aligned f32 values, or a SIMD equivalent.


impl Vec4[src]

pub fn abs(self) -> Self[src]

Component-wise absolute value.

Trait Implementations

impl CanAbs for Vec4[src]

impl Debug for Vec4[src]

impl Copy for Vec4[src]

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

impl Clone for Vec4[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Vec4[src]

impl Pod for Vec4[src]

impl Zeroable for Vec4[src]

fn zeroed() -> Self[src]

Calls zeroed. Read more

Auto Trait Implementations

impl Unpin for Vec4

impl Sync for Vec4

impl Send for Vec4

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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