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