Struct lis2dw12::F32x3 [−][src]
pub struct F32x3 { pub x: f32, pub y: f32, pub z: f32, }
Expand description
3-dimensional XYZ vector of f32
values
Fields
x: f32
Expand description
X component
y: f32
Expand description
Y component
z: f32
Expand description
Z component
Implementations
Trait Implementations
impl MulAssign<f32> for F32x3
[src]
impl MulAssign<f32> for F32x3
[src]pub fn mul_assign(&mut self, n: f32)
[src]
pub fn mul_assign(&mut self, n: f32)
[src]Performs the *=
operation. Read more
impl Vector for F32x3
[src]
impl Vector for F32x3
[src]type Component = f32
type Component = f32
Type representing measured acceleration for a particular axis
type Axes = UInt<UInt<UTerm, B1>, B1>
type Axes = UInt<UInt<UTerm, B1>, B1>
Number of axes
pub fn from_iter<I>(into_iter: I) -> F32x3 where
I: IntoIterator<Item = <F32x3 as Vector>::Component>,
[src]
pub fn from_iter<I>(into_iter: I) -> F32x3 where
I: IntoIterator<Item = <F32x3 as Vector>::Component>,
[src]Instantiate a Vector
from an iterator over Self::Component
values. Read more
pub fn get(self, i: usize) -> Option<<F32x3 as Vector>::Component>
[src]
pub fn get(self, i: usize) -> Option<<F32x3 as Vector>::Component>
[src]Get the component value for a particular index
pub fn to_array(self) -> GenericArray<f32, UInt<UInt<UTerm, B1>, B1>>
[src]
pub fn to_array(self) -> GenericArray<f32, UInt<UInt<UTerm, B1>, B1>>
[src]Obtain an array of the acceleration components for each of the axes
fn from_slice(slice: &[Self::Component]) -> Self
[src]
fn from_slice(slice: &[Self::Component]) -> Self
[src]Instantiate a vector from a slice of components. Read more
impl Copy for F32x3
[src]
impl StructuralPartialEq for F32x3
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self