Struct lis2dh12::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

X component

y: f32

Y component

z: f32

Z component

Implementations

Instantiate from X,Y,Z components

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the *= operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Type representing measured acceleration for a particular axis

Number of axes

Smallest value representable by a vector component

Largest value representable by a vector component

Instantiate a Vector from an iterator over Self::Component values. Read more

Get the component value for a particular index

Obtain an array of the acceleration components for each of the axes

Instantiate a vector from a slice of components. Read more

Iterate over the components of a vector

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Compute the distance between two vectors

Compute the magnitude of a vector