pub struct F32x3 {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
3-dimensional XYZ vector of f32
values
Fields§
§x: f32
X component
y: f32
Y component
z: f32
Z component
Implementations§
Trait Implementations§
source§impl MulAssign<f32> for F32x3
impl MulAssign<f32> for F32x3
source§fn mul_assign(&mut self, n: f32)
fn mul_assign(&mut self, n: f32)
Performs the
*=
operation. Read moresource§impl PartialEq for F32x3
impl PartialEq for F32x3
source§impl Vector for F32x3
impl Vector for F32x3
source§fn get(self, i: usize) -> Option<<F32x3 as Vector>::Component>
fn get(self, i: usize) -> Option<<F32x3 as Vector>::Component>
Get the component value for a particular index
source§fn to_array(self) -> GenericArray<f32, UInt<UInt<UTerm, B1>, B1>>
fn to_array(self) -> GenericArray<f32, UInt<UInt<UTerm, B1>, B1>>
Obtain an array of the acceleration components for each of the axes
source§fn from_slice(slice: &[Self::Component]) -> Self
fn from_slice(slice: &[Self::Component]) -> Self
Instantiate a vector from a slice of components. Read more
impl Copy for F32x3
impl StructuralPartialEq for F32x3
Auto Trait Implementations§
impl RefUnwindSafe for F32x3
impl Send for F32x3
impl Sync for F32x3
impl Unpin for F32x3
impl UnwindSafe for F32x3
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