[][src]Struct adxl313::F32x3

pub struct F32x3 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

3-dimensional XYZ vector of f32 values

Fields

x: f32

X component

y: f32

Y component

z: f32

Z component

Implementations

impl F32x3[src]

pub fn new(x: f32, y: f32, z: f32) -> F32x3[src]

Instantiate from X,Y,Z components

Trait Implementations

impl Clone for F32x3[src]

impl Copy for F32x3[src]

impl Debug for F32x3[src]

impl Default for F32x3[src]

impl From<(f32, f32, f32)> for F32x3[src]

impl From<I16x3> for F32x3[src]

impl From<I8x3> for F32x3[src]

impl From<U16x3> for F32x3[src]

impl From<U8x3> for F32x3[src]

impl Index<usize> for F32x3[src]

type Output = f32

The returned type after indexing.

impl MulAssign<f32> for F32x3[src]

impl PartialEq<F32x3> for F32x3[src]

impl StructuralPartialEq for F32x3[src]

impl Vector for F32x3[src]

type Component = f32

Type representing measured acceleration for a particular axis

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

Number of axes

Auto Trait Implementations

impl Send for F32x3

impl Sync for F32x3

impl Unpin for F32x3

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

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

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]

type Error = Infallible

The type returned in the event of a conversion error.

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<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