Type Alias tea::vec::Vec3

source ·
pub type Vec3 = Vector3<f32>;

Implementations§

source§

impl Vec3

source

pub fn zero() -> Self

source

pub fn up() -> Self

source

pub fn down() -> Self

source

pub fn front() -> Self

source

pub fn back() -> Self

source

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

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 scalar(&self, val: f32) -> Self

Trait Implementations§