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