Type Alias tea::vec::Vec4

source ·
pub type Vec4 = Vector4<f32>;

Implementations§

source§

impl Vec4

source

pub fn zero() -> Vec4

source

pub fn from_array(data: [f32; 4]) -> Vec4

source

pub fn dot(&self, rhs: &Self) -> f32

source

pub fn len(&self) -> f32

source

pub fn cross(&self, other: &Self) -> Self

source

pub fn normalize(&self) -> Self

source

pub fn apply_matrix(&mut self, matrix: Mat4)

Trait Implementations§