[][src]Struct kit::V2

pub struct V2 {
    pub x: f32,
    pub y: f32,
}

Fields

x: f32y: f32

Implementations

impl V2[src]

pub const X: V2[src]

pub const Y: V2[src]

pub fn dot(self, b: V2) -> f32[src]

pub fn sq(self) -> f32[src]

pub fn mag(self: V2) -> f32[src]

pub fn abs(v: V2) -> V2[src]

pub fn aspect(v: V2) -> f32[src]

pub fn normalize(self) -> V2[src]

pub fn perp2(v: V2) -> V2[src]

pub const LEFT: V2[src]

pub const DOWN: V2[src]

pub const RIGHT: V2[src]

pub const UP: V2[src]

pub const ZERO: V2[src]

pub fn zeroish(self: V2) -> bool[src]

pub fn nearly(a: V2, b: V2) -> bool[src]

Trait Implementations

impl Add<V2> for V2[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for V2[src]

impl Copy for V2[src]

impl Default for V2[src]

impl Display for V2[src]

impl Div<f32> for V2[src]

type Output = Self

The resulting type after applying the / operator.

impl From<V2> for V3[src]

impl Mul<f32> for V2[src]

type Output = Self

The resulting type after applying the * operator.

impl Sub<V2> for V2[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for V2

impl Send for V2

impl Sync for V2

impl Unpin for V2

impl UnwindSafe for V2

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> ToString for T where
    T: Display + ?Sized
[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> 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>,