Type Alias vector2math::simd::u8x2
source · pub type u8x2 = Simd<[u8; 2]>;
Available on crate feature
simd
only.Expand description
A 16-bit vector with 2 u8
lanes.
Trait Implementations§
source§impl Vector2 for u8x2
impl Vector2 for u8x2
source§fn new(x: Self::Scalar, y: Self::Scalar) -> Self
fn new(x: Self::Scalar, y: Self::Scalar) -> Self
Create a new vector from an x and y component
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Add another vector into this one
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Subtract another vector into this one
source§fn mul2_assign(&mut self, other: Self)
fn mul2_assign(&mut self, other: Self)
Multiply another vector component-wise into this one
source§fn div2_assign(&mut self, other: Self)
fn div2_assign(&mut self, other: Self)
Divide another vector component-wise into this one
source§fn map_into<V>(self) -> Vwhere
V: Vector2,
V::Scalar: From<Self::Scalar>,
fn map_into<V>(self) -> Vwhere V: Vector2, V::Scalar: From<Self::Scalar>,
Map this vector to a vector of another type
source§fn map_dims<F>(self, f: F) -> Selfwhere
F: FnMut(Self::Scalar) -> Self::Scalar,
fn map_dims<F>(self, f: F) -> Selfwhere F: FnMut(Self::Scalar) -> Self::Scalar,
Map the individual components of this vector
source§fn map_with<V, F>(self, f: F) -> Vwhere
V: Vector2,
F: FnMut(Self::Scalar) -> V::Scalar,
fn map_with<V, F>(self, f: F) -> Vwhere V: Vector2, F: FnMut(Self::Scalar) -> V::Scalar,
Map this vector to a vector of another type using a function
source§fn mul_assign(&mut self, by: Self::Scalar)
fn mul_assign(&mut self, by: Self::Scalar)
Multiply a scalar into this vector
source§fn div_assign(&mut self, by: Self::Scalar)
fn div_assign(&mut self, by: Self::Scalar)
Divide a scalar into this vector