Struct xmath::Vector4
[−]
[src]
pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }
Fields
x | |
y | |
z | |
w |
pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }
x | |
y | |
z | |
w |
impl Vector4
impl Vector for Vector4
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 Vector4
impl AddAssign for Vector4
fn add_assign(&mut self, rhs: Self)
impl Sub for Vector4
impl SubAssign for Vector4
fn sub_assign(&mut self, rhs: Self)
impl Div for Vector4
impl DivAssign for Vector4
fn div_assign(&mut self, rhs: Self)
impl Div<f32> for Vector4
impl DivAssign<f32> for Vector4
fn div_assign(&mut self, rhs: f32)
impl Mul for Vector4
impl MulAssign for Vector4
fn mul_assign(&mut self, rhs: Self)
impl Mul<f32> for Vector4
impl MulAssign<f32> for Vector4
fn mul_assign(&mut self, rhs: f32)
impl Neg for Vector4
impl Index<usize> for Vector4
impl From<Row> for Vector4
fn from(row: Row) -> Self
impl Debug for Vector4
impl PartialEq for Vector4
impl Copy for Vector4
impl Clone for Vector4
fn clone(&self) -> Vector4
fn clone_from(&mut self, source: &Self)