F32x2

Type Alias F32x2 

Source
pub type F32x2 = Vector<f32, 2>;
Expand description

A 2-dimensional vector of f32s.

Aliased Type§

pub struct F32x2(pub [f32; 2]);

Tuple Fields§

§0: [f32; 2]

Implementations§

Source§

impl F32x2

Source

pub const X: Self

Unit x vector

Source

pub const Y: Self

Unit y vector

Source

pub const NEG_X: Self

Minus unit x vector

Source

pub const NEG_Y: Self

Minus unit y vector

Source

pub const MIN: Self

All elements are f32::MIN

Source

pub const MAX: Self

All elements are f32::MAX

Source

pub const ZERO: Self

All elemets are ZERO