#[repr(C, align(16))]pub struct f64x2 { /* private fields */ }
Implementations
sourceimpl f64x2
impl f64x2
pub const ONE: f64x2
pub const ZERO: f64x2
pub const HALF: f64x2
pub const E: f64x2
pub const FRAC_1_PI: f64x2
pub const FRAC_2_PI: f64x2
pub const FRAC_2_SQRT_PI: f64x2
pub const FRAC_1_SQRT_2: f64x2
pub const FRAC_PI_2: f64x2
pub const FRAC_PI_3: f64x2
pub const FRAC_PI_4: f64x2
pub const FRAC_PI_6: f64x2
pub const FRAC_PI_8: f64x2
pub const LN_2: f64x2
pub const LN_10: f64x2
pub const LOG2_E: f64x2
pub const LOG10_E: f64x2
pub const LOG10_2: f64x2
pub const LOG2_10: f64x2
pub const PI: f64x2
pub const SQRT_2: f64x2
pub const TAU: f64x2
sourceimpl f64x2
impl f64x2
pub fn new(array: [f64; 2]) -> Self
pub fn blend(self, t: Self, f: Self) -> Self
pub fn abs(self) -> Self
sourcepub fn fast_max(self, rhs: Self) -> Self
pub fn fast_max(self, rhs: Self) -> Self
Calculates the lanewise maximum of both vectors. This is a faster
implementation than max
, but it doesn’t specify any behavior if NaNs are
involved.
sourcepub fn max(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
Calculates the lanewise maximum of both vectors. If either lane is NaN,
the other lane gets chosen. Use fast_max
for a faster implementation
that doesn’t handle NaNs.
sourcepub fn fast_min(self, rhs: Self) -> Self
pub fn fast_min(self, rhs: Self) -> Self
Calculates the lanewise minimum of both vectors. This is a faster
implementation than min
, but it doesn’t specify any behavior if NaNs are
involved.
sourcepub fn min(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
Calculates the lanewise minimum of both vectors. If either lane is NaN,
the other lane gets chosen. Use fast_min
for a faster implementation
that doesn’t handle NaNs.
pub fn is_nan(self) -> Self
pub fn is_finite(self) -> Self
pub fn is_inf(self) -> Self
pub fn round(self) -> Self
pub fn round_int(self) -> i64x2
pub fn mul_add(self, m: Self, a: Self) -> Self
pub fn mul_sub(self, m: Self, a: Self) -> Self
pub fn mul_neg_add(self, m: Self, a: Self) -> Self
pub fn mul_neg_sub(self, m: Self, a: Self) -> Self
pub fn flip_signs(self, signs: Self) -> Self
pub fn copysign(self, sign: Self) -> Self
pub fn asin_acos(self) -> (Self, Self)
pub fn acos(self) -> Self
pub fn asin(self) -> Self
pub fn atan(self) -> Self
pub fn atan2(self, x: Self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn tan(self) -> Self
pub fn to_degrees(self) -> Self
pub fn to_radians(self) -> Self
pub fn sqrt(self) -> Self
pub fn move_mask(self) -> i32
pub fn any(self) -> bool
pub fn all(self) -> bool
pub fn none(self) -> bool
pub fn reduce_add(self) -> f64
pub fn ln(self) -> Self
pub fn log2(self) -> Self
pub fn log10(self) -> Self
pub fn pow_f64x2(self, y: Self) -> Self
pub fn powf(self, y: f64) -> Self
pub fn to_array(self) -> [f64; 2]
pub fn as_array_ref(&self) -> &[f64; 2]
Trait Implementations
sourceimpl AddAssign<&'_ f64x2> for f64x2
impl AddAssign<&'_ f64x2> for f64x2
sourcefn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the +=
operation. Read more
sourceimpl AddAssign<f64x2> for f64x2
impl AddAssign<f64x2> for f64x2
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl BitAndAssign<&'_ f64x2> for f64x2
impl BitAndAssign<&'_ f64x2> for f64x2
sourcefn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<f64x2> for f64x2
impl BitAndAssign<f64x2> for f64x2
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<&'_ f64x2> for f64x2
impl BitOrAssign<&'_ f64x2> for f64x2
sourcefn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<f64x2> for f64x2
impl BitOrAssign<f64x2> for f64x2
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the |=
operation. Read more
sourceimpl BitXorAssign<&'_ f64x2> for f64x2
impl BitXorAssign<&'_ f64x2> for f64x2
sourcefn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<f64x2> for f64x2
impl BitXorAssign<f64x2> for f64x2
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the ^=
operation. Read more
sourceimpl DivAssign<&'_ f64x2> for f64x2
impl DivAssign<&'_ f64x2> for f64x2
sourcefn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Performs the /=
operation. Read more
sourceimpl DivAssign<f64x2> for f64x2
impl DivAssign<f64x2> for f64x2
sourcefn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the /=
operation. Read more
sourceimpl MulAssign<&'_ f64x2> for f64x2
impl MulAssign<&'_ f64x2> for f64x2
sourcefn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the *=
operation. Read more
sourceimpl MulAssign<f64x2> for f64x2
impl MulAssign<f64x2> for f64x2
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl SubAssign<&'_ f64x2> for f64x2
impl SubAssign<&'_ f64x2> for f64x2
sourcefn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the -=
operation. Read more
sourceimpl SubAssign<f64x2> for f64x2
impl SubAssign<f64x2> for f64x2
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl Copy for f64x2
impl Pod for f64x2
impl StructuralPartialEq for f64x2
Auto Trait Implementations
impl RefUnwindSafe for f64x2
impl Send for f64x2
impl Sync for f64x2
impl Unpin for f64x2
impl UnwindSafe for f64x2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more