[][src]Struct kit::V4

pub struct V4 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub w: f32,
}

Fields

x: f32y: f32z: f32w: f32

Implementations

impl V4[src]

pub const ONE: V4[src]

pub const ZERO: V4[src]

pub const RED: V4[src]

pub const GEEN: V4[src]

pub const BLUE: V4[src]

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

pub const fn all(value: f32) -> V4[src]

pub fn mag_sq(v: V4) -> f32[src]

pub fn v4_mag(v: V4) -> f32[src]

Trait Implementations

impl Clone for V4[src]

impl Copy for V4[src]

impl Default for V4[src]

impl Index<usize> for V4[src]

type Output = f32

The returned type after indexing.

impl IndexMut<usize> for V4[src]

Auto Trait Implementations

impl RefUnwindSafe for V4

impl Send for V4

impl Sync for V4

impl Unpin for V4

impl UnwindSafe for V4

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> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,