Struct Vector3
#[repr(C)]pub struct Vector3 {
pub data: [f32; 3],
}Expand description
Vector with 3 floating point components: (x, y, z).
Fields§
§data: [f32; 3]Vector elements.
Implementations§
§impl Vector3
impl Vector3
pub const ZERO: Vector3 = _
pub const ONE: Vector3 = _
pub const POSITIVE_X: Vector3 = _
pub const POSITIVE_Y: Vector3 = _
pub const POSITIVE_Z: Vector3 = _
pub const NEGATIVE_X: Vector3 = _
pub const NEGATIVE_Y: Vector3 = _
pub const NEGATIVE_Z: Vector3 = _
pub const MAX: Vector3 = _
pub const MIN: Vector3 = _
pub const NAN: Vector3 = _
pub const INFINITY: Vector3 = _
pub const NEG_INFINITY: Vector3 = _
pub const fn new(x: f32, y: f32, z: f32) -> Vector3
pub const fn new_single(v: f32) -> Vector3
Trait Implementations§
§impl AddAssign for Vector3
impl AddAssign for Vector3
§fn add_assign(&mut self, rhs: Vector3)
fn add_assign(&mut self, rhs: Vector3)
Performs the
+= operation. Read more§impl MulAssign for Vector3
impl MulAssign for Vector3
§fn mul_assign(&mut self, rhs: Vector3)
fn mul_assign(&mut self, rhs: Vector3)
Performs the
*= operation. Read more§impl SubAssign for Vector3
impl SubAssign for Vector3
§fn sub_assign(&mut self, rhs: Vector3)
fn sub_assign(&mut self, rhs: Vector3)
Performs the
-= operation. Read more§impl VariantConstraint for Vector3
impl VariantConstraint for Vector3
impl Copy for Vector3
impl PropertyTypeConstraint for Vector3
impl StructuralPartialEq for Vector3
Auto Trait Implementations§
impl Freeze for Vector3
impl RefUnwindSafe for Vector3
impl Send for Vector3
impl Sync for Vector3
impl Unpin for Vector3
impl UnwindSafe for Vector3
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)