pub struct f32x2(/* private fields */);
Implementations§
source§impl f32x2
impl f32x2
sourcepub fn vmin(self, rhs: Self) -> Self
pub fn vmin(self, rhs: Self) -> Self
Returns a vector with the smallest/minimum value of each lane
sourcepub fn vmax(self, rhs: Self) -> Self
pub fn vmax(self, rhs: Self) -> Self
Returns a vector with the absolute values of the original vector
§impl f32x2
impl f32x2
pub fn new(a: [f32; 2]) -> Self
pub fn filled_with(a: f32) -> f32x2
pub fn filled_with(a: f32) -> f32x2
Creates a new vector with all lanes filled with the provided value
pub fn into_array(self) -> [f32; 2]
pub fn into_array(self) -> [f32; 2]
Returns an array with the vector’s values
§impl f32x2
impl f32x2
pub unsafe fn get_unchecked(&self, idx: usize) -> &f32
pub unsafe fn get_unchecked(&self, idx: usize) -> &f32
Returns a reference to the value in the specified lane without checking if it’s within range
pub unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut f32
pub unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut f32
Returns a mutable reference to the value in the specified lane without checking if it’s within range
pub unsafe fn index_unchecked(&self, idx: usize) -> &f32
👎Deprecated since 0.1.4: use get_unchecked
instead
pub unsafe fn index_unchecked(&self, idx: usize) -> &f32
get_unchecked
insteadReturns a reference to the value in the specified lane without checking if it’s within range
pub unsafe fn index_mut_unchecked(&mut self, idx: usize) -> &mut f32
👎Deprecated since 0.1.4: use get_mut_unchecked
instead
pub unsafe fn index_mut_unchecked(&mut self, idx: usize) -> &mut f32
get_mut_unchecked
insteadReturns a mutable reference to the value in the specified lane without checking if it’s within range
Trait Implementations§
source§impl AddAssign<f32> for f32x2
impl AddAssign<f32> for f32x2
source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moresource§impl AddAssign for f32x2
impl AddAssign for f32x2
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl DivAssign<f32> for f32x2
impl DivAssign<f32> for f32x2
source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moresource§impl DivAssign for f32x2
impl DivAssign for f32x2
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl MulAssign<f32> for f32x2
impl MulAssign<f32> for f32x2
source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moresource§impl MulAssign for f32x2
impl MulAssign for f32x2
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl PartialEq for f32x2
impl PartialEq for f32x2
source§impl SubAssign<f32> for f32x2
impl SubAssign<f32> for f32x2
source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moresource§impl SubAssign for f32x2
impl SubAssign for f32x2
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for f32x2
Auto Trait Implementations§
impl RefUnwindSafe for f32x2
impl Send for f32x2
impl Sync for f32x2
impl Unpin for f32x2
impl UnwindSafe for f32x2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more