Struct xmath::Vector3
[−]
[src]
pub struct Vector3 { pub x: f32, pub y: f32, pub z: f32, // some fields omitted }
Fields
x | |
y | |
z |
pub struct Vector3 { pub x: f32, pub y: f32, pub z: f32, // some fields omitted }
x | |
y | |
z |
impl Vector3
impl Vector for Vector3
fn zero() -> Self
fn one() -> Self
fn infinity() -> Self
fn nan() -> Self
fn epsilon() -> Self
fn replicate(value: f32) -> Self
fn swizzle(&self, e0: usize, e1: usize, e2: usize, _e3: usize) -> Self
fn permute(&self, other: &Self, permute_x: usize, permute_y: usize, permute_z: usize, _permute_w: usize) -> Self
fn transform(&self, matrix: &Matrix) -> Self
fn min(&self, other: &Self) -> Self
fn max(&self, other: &Self) -> Self
fn round(&self) -> Self
fn trunc(&self) -> Self
fn floor(&self) -> Self
fn ceil(&self) -> Self
fn clamp(&self, min: &Self, max: &Self) -> Self
fn multiply_add(&self, mul: &Self, add: &Self) -> Self
fn splat_x(&self) -> Self
fn splat_y(&self) -> Self
fn splat_z(&self) -> Self
fn splat_w(&self) -> Self
impl Add for Vector3
impl AddAssign for Vector3
fn add_assign(&mut self, rhs: Self)
impl Sub for Vector3
impl SubAssign for Vector3
fn sub_assign(&mut self, rhs: Self)
impl Div for Vector3
impl DivAssign for Vector3
fn div_assign(&mut self, rhs: Self)
impl Div<f32> for Vector3
impl DivAssign<f32> for Vector3
fn div_assign(&mut self, rhs: f32)
impl Mul for Vector3
impl MulAssign for Vector3
fn mul_assign(&mut self, rhs: Self)
impl Mul<f32> for Vector3
impl MulAssign<f32> for Vector3
fn mul_assign(&mut self, rhs: f32)
impl Neg for Vector3
impl Index<usize> for Vector3
impl From<Row> for Vector3
fn from(row: Row) -> Self
impl Debug for Vector3
impl PartialEq for Vector3
impl Copy for Vector3
impl Clone for Vector3
fn clone(&self) -> Vector3
fn clone_from(&mut self, source: &Self)