pub struct Vector4 {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
Fields§
§x: f32
§y: f32
§z: f32
§w: f32
Implementations§
Trait Implementations§
source§impl AddAssign<Vector4> for Vector4
impl AddAssign<Vector4> for Vector4
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl DivAssign<Vector4> for Vector4
impl DivAssign<Vector4> for Vector4
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl DivAssign<f32> for Vector4
impl DivAssign<f32> for Vector4
source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moresource§impl MulAssign<Vector4> for Vector4
impl MulAssign<Vector4> for Vector4
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl MulAssign<f32> for Vector4
impl MulAssign<f32> for Vector4
source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moresource§impl PartialEq<Vector4> for Vector4
impl PartialEq<Vector4> for Vector4
source§impl SubAssign<Vector4> for Vector4
impl SubAssign<Vector4> for Vector4
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moresource§impl Vector for 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 is_nan(&self) -> bool
fn is_infinite(&self) -> bool
fn dot(&self, other: &Self) -> f32
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
fn is_finite(&self) -> bool
fn length_sq(&self) -> f32
fn length(&self) -> f32
fn normalize(self) -> Self
impl Copy for Vector4
impl StructuralPartialEq for Vector4
Auto Trait Implementations§
impl RefUnwindSafe for Vector4
impl Send for Vector4
impl Sync for Vector4
impl Unpin for Vector4
impl UnwindSafe for Vector4
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more