pub struct Vec2d { /* private fields */ }
Implementations§
Source§impl 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
Source§impl 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
Source§impl 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§
Source§impl AddAssign<f64> for Vec2d
impl AddAssign<f64> for Vec2d
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl AddAssign for Vec2d
impl AddAssign for Vec2d
Source§fn add_assign(&mut self, rhs: Vec2d)
fn add_assign(&mut self, rhs: Vec2d)
Performs the
+=
operation. Read moreSource§impl DivAssign<f64> for Vec2d
impl DivAssign<f64> for Vec2d
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl DivAssign for Vec2d
impl DivAssign for Vec2d
Source§fn div_assign(&mut self, rhs: Vec2d)
fn div_assign(&mut self, rhs: Vec2d)
Performs the
/=
operation. Read moreSource§impl MulAssign<f64> for Vec2d
impl MulAssign<f64> for Vec2d
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl MulAssign for Vec2d
impl MulAssign for Vec2d
Source§fn mul_assign(&mut self, rhs: Vec2d)
fn mul_assign(&mut self, rhs: Vec2d)
Performs the
*=
operation. Read moreSource§impl SubAssign<f64> for Vec2d
impl SubAssign<f64> for Vec2d
Source§fn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the
-=
operation. Read moreSource§impl SubAssign for Vec2d
impl SubAssign for Vec2d
Source§fn sub_assign(&mut self, rhs: Vec2d)
fn sub_assign(&mut self, rhs: Vec2d)
Performs the
-=
operation. Read moreimpl Copy for Vec2d
impl StructuralPartialEq for Vec2d
Auto Trait Implementations§
impl Freeze for Vec2d
impl RefUnwindSafe for Vec2d
impl Send for Vec2d
impl Sync for Vec2d
impl Unpin for Vec2d
impl UnwindSafe for Vec2d
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