pub struct Vec2d { /* private fields */ }
Implementations
sourceimpl Vec2d
impl Vec2d
pub fn floor(self) -> Self
pub fn ceil(self) -> Self
pub fn round(self) -> Self
pub fn trunc(self) -> Self
pub fn fract(self) -> Self
pub fn abs(self) -> Self
pub fn signum(self) -> Self
pub fn powf(self, n: f64) -> Self
pub fn sqrt(self) -> Self
pub fn exp(self) -> Self
pub fn exp2(self) -> Self
pub fn ln(self) -> Self
pub fn log(self, base: f64) -> Self
pub fn log2(self) -> Self
pub fn log10(self) -> Self
pub fn cbrt(self) -> Self
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn tan(self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn lerp(self, rhs: Self, s: f64) -> Self
pub fn lerp_vec(self, rhs: Self, s: Self) -> Self
pub fn is_nan(self) -> bool
pub fn is_infinite(self) -> bool
pub fn is_finite(self) -> bool
pub fn recip(self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn clamp(self, min: Self, max: Self) -> Self
pub fn saturate(self) -> Self
pub fn min_element(self) -> f64
pub fn max_element(self) -> f64
sourceimpl Vec2d
impl Vec2d
pub fn dot(self, rhs: Self) -> f64
pub fn cross(self, rhs: Self) -> f64
pub fn length(self) -> f64
pub fn length_squared(self) -> f64
pub fn length_recip(self) -> f64
pub fn distance(self, rhs: Self) -> f64
pub fn distance_squared(self, rhs: Self) -> f64
pub fn normalize(self) -> Self
pub fn try_normalize(self) -> Option<Self>
pub fn normalize_or_zero(self) -> Self
pub fn is_normalized(self) -> bool
pub fn angle_between(self, rhs: Self) -> f64
sourceimpl Vec2d
impl Vec2d
pub fn x(self) -> f64
pub fn y(self) -> f64
pub fn xx(self) -> Self
pub fn xy(self) -> Self
pub fn yx(self) -> Self
pub fn yy(self) -> Self
pub fn xxx(self) -> Vec3d
pub fn xxy(self) -> Vec3d
pub fn xyx(self) -> Vec3d
pub fn xyy(self) -> Vec3d
pub fn yxx(self) -> Vec3d
pub fn yxy(self) -> Vec3d
pub fn yyx(self) -> Vec3d
pub fn yyy(self) -> Vec3d
pub fn xxxx(self) -> Vec4d
pub fn xxxy(self) -> Vec4d
pub fn xxyx(self) -> Vec4d
pub fn xxyy(self) -> Vec4d
pub fn yxxx(self) -> Vec4d
pub fn yxxy(self) -> Vec4d
pub fn yxyx(self) -> Vec4d
pub fn yxyy(self) -> Vec4d
Trait Implementations
sourceimpl AddAssign<Vec2d> for Vec2d
impl AddAssign<Vec2d> for Vec2d
sourcefn add_assign(&mut self, rhs: Vec2d)
fn add_assign(&mut self, rhs: Vec2d)
Performs the +=
operation. Read more
sourceimpl AddAssign<f64> for Vec2d
impl AddAssign<f64> for Vec2d
sourcefn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the +=
operation. Read more
sourceimpl DivAssign<Vec2d> for Vec2d
impl DivAssign<Vec2d> for Vec2d
sourcefn div_assign(&mut self, rhs: Vec2d)
fn div_assign(&mut self, rhs: Vec2d)
Performs the /=
operation. Read more
sourceimpl DivAssign<f64> for Vec2d
impl DivAssign<f64> for Vec2d
sourcefn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the /=
operation. Read more
sourceimpl MulAssign<Vec2d> for Vec2d
impl MulAssign<Vec2d> for Vec2d
sourcefn mul_assign(&mut self, rhs: Vec2d)
fn mul_assign(&mut self, rhs: Vec2d)
Performs the *=
operation. Read more
sourceimpl MulAssign<f64> for Vec2d
impl MulAssign<f64> for Vec2d
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the *=
operation. Read more
sourceimpl SubAssign<Vec2d> for Vec2d
impl SubAssign<Vec2d> for Vec2d
sourcefn sub_assign(&mut self, rhs: Vec2d)
fn sub_assign(&mut self, rhs: Vec2d)
Performs the -=
operation. Read more
sourceimpl SubAssign<f64> for Vec2d
impl SubAssign<f64> for Vec2d
sourcefn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the -=
operation. Read more
impl Copy for Vec2d
impl StructuralPartialEq for Vec2d
Auto Trait Implementations
impl RefUnwindSafe for Vec2d
impl Send for Vec2d
impl Sync for Vec2d
impl Unpin for Vec2d
impl UnwindSafe for Vec2d
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more