[][src]Struct hektor::Vec3

pub struct Vec3 { /* fields omitted */ }

Three-dimensional vector: x, y, and z.

Internally, this is a Vec4. The speed gains outweigh the extra memory used.


impl Vec3[src]

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

Component-wise absolute value.

Trait Implementations

impl CanAbs for Vec3[src]

impl Debug for Vec3[src]

impl Copy for Vec3[src]

impl From<[f32; 3]> for Vec3[src]

impl Clone for Vec3[src]

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

Performs copy-assignment from source. Read more

impl Default for Vec3[src]

impl Pod for Vec3[src]

impl Zeroable for Vec3[src]

fn zeroed() -> Self[src]

Calls zeroed. Read more

Auto Trait Implementations

impl Unpin for Vec3

impl Sync for Vec3

impl Send for Vec3

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