[−][src]Struct accelerometer::vector::F32x2
2-dimensional XY vector of f32
values
Fields
x: f32
X component
y: f32
Y component
Implementations
impl F32x2
[src]
Trait Implementations
impl Clone for F32x2
[src]
fn clone(&self) -> F32x2
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for F32x2
[src]
impl Debug for F32x2
[src]
impl Default for F32x2
[src]
impl From<(f32, f32)> for F32x2
[src]
impl From<I16x2> for F32x2
[src]
impl From<I8x2> for F32x2
[src]
impl From<U16x2> for F32x2
[src]
impl From<U8x2> for F32x2
[src]
impl Index<usize> for F32x2
[src]
impl MulAssign<f32> for F32x2
[src]
fn mul_assign(&mut self, n: f32)
[src]
impl PartialEq<F32x2> for F32x2
[src]
impl StructuralPartialEq for F32x2
[src]
impl Vector for F32x2
[src]
type Component = f32
Type representing measured acceleration for a particular axis
type Axes = UInt<UInt<UTerm, B1>, B0>
Number of axes
const MIN: f32
[src]
const MAX: f32
[src]
fn from_iter<I>(into_iter: I) -> F32x2 where
I: IntoIterator<Item = <F32x2 as Vector>::Component>,
[src]
I: IntoIterator<Item = <F32x2 as Vector>::Component>,
fn get(self, i: usize) -> Option<<F32x2 as Vector>::Component>
[src]
fn to_array(self) -> GenericArray<f32, UInt<UInt<UTerm, B1>, B0>>
[src]
fn from_slice(slice: &[Self::Component]) -> Self
[src]
fn iter(&self) -> Iter<Self>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, A, C> VectorExt for V where
A: ArrayLength<C>,
C: Component + Into<f32>,
V: Vector<Axes = A, Component = C> + MulAssign<f32>,
[src]
A: ArrayLength<C>,
C: Component + Into<f32>,
V: Vector<Axes = A, Component = C> + MulAssign<f32>,