Type Definition mathguru::Vector3

source ·
pub type Vector3<T> = Vector<T, 3>;

Implementations§

source§

impl<T: Clone> Vector3<T>

source

pub fn new(x: T, y: T, z: T) -> Self

source

pub fn x(&self) -> T

source

pub fn y(&self) -> T

source

pub fn z(&self) -> T

source§

impl<T: Mul<Output = T> + Sub<Output = T> + Clone> Vector3<T>

source

pub fn cross(&self, rhs: &Vector3<T>) -> Vector3<T>