[−][src]Struct micromath::vector::U8x3
3-dimensional XYZ vector of u8
values
Fields
x: u8
X component
y: u8
Y component
z: u8
Z component
Methods
impl U8x3
[src]
Trait Implementations
impl Vector for U8x3
[src]
type Component = u8
Type representing measured acceleration for a particular axis
type Axes = U3
Number of axes
const MIN: u8
[src]
const MAX: u8
[src]
fn from_iter<I>(into_iter: I) -> Self where
I: IntoIterator<Item = Self::Component>,
[src]
I: IntoIterator<Item = Self::Component>,
fn get(self, i: usize) -> Option<Self::Component>
[src]
fn to_array(self) -> GenericArray<u8, U3>
[src]
fn from_slice(slice: &[Self::Component]) -> Self
[src]
Instantiate a vector from a slice of components. Read more
ⓘImportant traits for Iter<'a, V>fn iter(&self) -> Iter<Self>
[src]
ⓘImportant traits for Iter<'a, V>
Iterate over the components of a vector
impl PartialEq<U8x3> for U8x3
[src]
impl Copy for U8x3
[src]
impl MulAssign<f32> for U8x3
[src]
fn mul_assign(&mut self, n: f32)
[src]
impl Index<usize> for U8x3
[src]
impl Debug for U8x3
[src]
impl From<(u8, u8, u8)> for U8x3
[src]
impl From<U8x3> for F32x3
[src]
impl Clone for U8x3
[src]
fn clone(&self) -> U8x3
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for U8x3
[src]
Auto Trait Implementations
Blanket Implementations
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>,
fn distance(Self, V) -> f32
[src]
Compute the distance between two vectors
fn magnitude(Self) -> f32
[src]
Compute the magnitude of a vector
impl<T, U> TryFrom 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> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryInto 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<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self