Type Alias Vec3

Source
pub type Vec3 = Vector3<i32>;

Aliased Type§

pub struct Vec3 {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

Fields§

§x: i32§y: i32§z: i32

Implementations§

Source§

impl Vec3

Source

pub const ZERO: Vec3

Source

pub const UNIT_X: Vec3

Source

pub const UNIT_Y: Vec3

Source

pub const UNIT_Z: Vec3

Source

pub const ONE: Vec3

Trait Implementations§

Source§

impl AsMut<Vector3<i32>> for Vec3

Source§

fn as_mut(&mut self) -> &mut Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Vector3<i32>> for Vec3

Source§

fn as_ref(&self) -> &Vec3

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl From<Vector3<f32>> for Vec3

Source§

fn from(value: Vec3f) -> Self

Converts to this type from the input type.