[][src]Struct accelerometer::I16x3

pub struct I16x3 {
    pub x: i16,
    pub y: i16,
    pub z: i16,
}

3-dimensional XYZ vector of i16 values

Fields

x: i16

X component

y: i16

Y component

z: i16

Z component

Methods

impl I16x3[src]

pub fn new(x: i16, y: i16, z: i16) -> I16x3[src]

Instantiate from X,Y,Z components

Trait Implementations

impl PartialEq<I16x3> for I16x3[src]

impl StructuralPartialEq for I16x3[src]

impl Debug for I16x3[src]

impl MulAssign<f32> for I16x3[src]

impl Index<usize> for I16x3[src]

type Output = i16

The returned type after indexing.

impl Default for I16x3[src]

impl Vector for I16x3[src]

type Component = i16

Type representing measured acceleration for a particular axis

type Axes = UInt<UInt<UTerm, B1>, B1>

Number of axes

impl Copy for I16x3[src]

impl Clone for I16x3[src]

impl From<(i16, i16, i16)> for I16x3[src]

impl From<I16x3> for F32x3[src]

Auto Trait Implementations

impl Unpin for I16x3

impl Send for I16x3

impl Sync for I16x3

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[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]

fn distance(self, other: V) -> f32[src]

Compute the distance between two vectors

fn magnitude(self) -> f32[src]

Compute the magnitude of a vector

impl<T> Same<T> for T

type Output = T

Should always be Self