Struct Vector4
#[repr(C)]pub struct Vector4 {
pub data: [f32; 4],
}Expand description
Vector with 4 floating point components: (x, y, z, w).
Fields§
§data: [f32; 4]Vector elements.
Implementations§
§impl Vector4
impl Vector4
pub const ZERO: Vector4 = _
pub const ONE: Vector4 = _
pub const POSITIVE_X: Vector4 = _
pub const POSITIVE_Y: Vector4 = _
pub const POSITIVE_Z: Vector4 = _
pub const POSITIVE_W: Vector4 = _
pub const NEGATIVE_X: Vector4 = _
pub const NEGATIVE_Y: Vector4 = _
pub const NEGATIVE_Z: Vector4 = _
pub const NEGATIVE_W: Vector4 = _
pub const MAX: Vector4 = _
pub const MIN: Vector4 = _
pub const NAN: Vector4 = _
pub const INFINITY: Vector4 = _
pub const NEG_INFINITY: Vector4 = _
pub const fn new(x: f32, y: f32, z: f32, w: f32) -> Vector4
pub const fn new_single(v: f32) -> Vector4
Trait Implementations§
§impl AddAssign for Vector4
impl AddAssign for Vector4
§fn add_assign(&mut self, rhs: Vector4)
fn add_assign(&mut self, rhs: Vector4)
Performs the
+= operation. Read more§impl MulAssign for Vector4
impl MulAssign for Vector4
§fn mul_assign(&mut self, rhs: Vector4)
fn mul_assign(&mut self, rhs: Vector4)
Performs the
*= operation. Read more§impl SubAssign for Vector4
impl SubAssign for Vector4
§fn sub_assign(&mut self, rhs: Vector4)
fn sub_assign(&mut self, rhs: Vector4)
Performs the
-= operation. Read more§impl VariantConstraint for Vector4
impl VariantConstraint for Vector4
impl Copy for Vector4
impl PropertyTypeConstraint for Vector4
impl StructuralPartialEq for Vector4
Auto Trait Implementations§
impl Freeze for Vector4
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)