pub struct Vec3f { /* private fields */ }
Implementations§
Source§impl Vec3f
impl Vec3f
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: f32) -> 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: f32) -> 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: f32) -> 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) -> f32
pub fn max_element(self) -> f32
Source§impl Vec3f
impl Vec3f
pub fn dot(self, rhs: Self) -> f32
pub fn cross(self, rhs: Self) -> Self
pub fn length(self) -> f32
pub fn length_squared(self) -> f32
pub fn length_recip(self) -> f32
pub fn distance(self, rhs: Self) -> f32
pub fn distance_squared(self, rhs: Self) -> f32
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) -> f32
Source§impl Vec3f
impl Vec3f
pub fn x(self) -> f32
pub fn y(self) -> f32
pub fn z(self) -> f32
pub fn xx(self) -> Vec2f
pub fn xy(self) -> Vec2f
pub fn xz(self) -> Vec2f
pub fn yx(self) -> Vec2f
pub fn yy(self) -> Vec2f
pub fn yz(self) -> Vec2f
pub fn zx(self) -> Vec2f
pub fn zy(self) -> Vec2f
pub fn zz(self) -> Vec2f
pub fn xxx(self) -> Self
pub fn xxy(self) -> Self
pub fn xxz(self) -> Self
pub fn xyx(self) -> Self
pub fn xyy(self) -> Self
pub fn xyz(self) -> Self
pub fn xzx(self) -> Self
pub fn xzy(self) -> Self
pub fn xzz(self) -> Self
pub fn yxx(self) -> Self
pub fn yxy(self) -> Self
pub fn yxz(self) -> Self
pub fn yyx(self) -> Self
pub fn yyy(self) -> Self
pub fn yyz(self) -> Self
pub fn yzx(self) -> Self
pub fn yzy(self) -> Self
pub fn yzz(self) -> Self
pub fn zxx(self) -> Self
pub fn zxy(self) -> Self
pub fn zxz(self) -> Self
pub fn zyx(self) -> Self
pub fn zyy(self) -> Self
pub fn zyz(self) -> Self
pub fn zzx(self) -> Self
pub fn zzy(self) -> Self
pub fn zzz(self) -> Self
pub fn xxxx(self) -> Vec4f
pub fn xxxy(self) -> Vec4f
pub fn xxxz(self) -> Vec4f
pub fn xxyx(self) -> Vec4f
pub fn xxyy(self) -> Vec4f
pub fn xxyz(self) -> Vec4f
pub fn xxzx(self) -> Vec4f
pub fn xxzy(self) -> Vec4f
pub fn xxzz(self) -> Vec4f
pub fn xyxx(self) -> Vec4f
pub fn xyxy(self) -> Vec4f
pub fn xyxz(self) -> Vec4f
pub fn xyyx(self) -> Vec4f
pub fn xyyy(self) -> Vec4f
pub fn xyyz(self) -> Vec4f
pub fn xyzx(self) -> Vec4f
pub fn xyzy(self) -> Vec4f
pub fn xyzz(self) -> Vec4f
pub fn xzxx(self) -> Vec4f
pub fn xzxy(self) -> Vec4f
pub fn xzxz(self) -> Vec4f
pub fn xzyx(self) -> Vec4f
pub fn xzyy(self) -> Vec4f
pub fn xzyz(self) -> Vec4f
pub fn xzzx(self) -> Vec4f
pub fn xzzy(self) -> Vec4f
pub fn xzzz(self) -> Vec4f
pub fn yxxx(self) -> Vec4f
pub fn yxxy(self) -> Vec4f
pub fn yxxz(self) -> Vec4f
pub fn yxyx(self) -> Vec4f
pub fn yxyy(self) -> Vec4f
pub fn yxyz(self) -> Vec4f
pub fn yxzx(self) -> Vec4f
pub fn yxzy(self) -> Vec4f
pub fn yxzz(self) -> Vec4f
pub fn yyxx(self) -> Vec4f
pub fn yyxy(self) -> Vec4f
pub fn yyxz(self) -> Vec4f
pub fn yyyx(self) -> Vec4f
pub fn yyyy(self) -> Vec4f
pub fn yyyz(self) -> Vec4f
pub fn yyzx(self) -> Vec4f
pub fn yyzy(self) -> Vec4f
pub fn yyzz(self) -> Vec4f
pub fn yzxx(self) -> Vec4f
pub fn yzxy(self) -> Vec4f
pub fn yzxz(self) -> Vec4f
pub fn yzyx(self) -> Vec4f
pub fn yzyy(self) -> Vec4f
pub fn yzyz(self) -> Vec4f
pub fn yzzx(self) -> Vec4f
pub fn yzzy(self) -> Vec4f
pub fn yzzz(self) -> Vec4f
pub fn zxxx(self) -> Vec4f
pub fn zxxy(self) -> Vec4f
pub fn zxxz(self) -> Vec4f
pub fn zxyx(self) -> Vec4f
pub fn zxyy(self) -> Vec4f
pub fn zxyz(self) -> Vec4f
pub fn zxzx(self) -> Vec4f
pub fn zxzy(self) -> Vec4f
pub fn zxzz(self) -> Vec4f
pub fn zyxx(self) -> Vec4f
pub fn zyxy(self) -> Vec4f
pub fn zyxz(self) -> Vec4f
pub fn zyyx(self) -> Vec4f
pub fn zyyy(self) -> Vec4f
pub fn zyyz(self) -> Vec4f
pub fn zyzx(self) -> Vec4f
pub fn zyzy(self) -> Vec4f
pub fn zyzz(self) -> Vec4f
pub fn zzxx(self) -> Vec4f
pub fn zzxy(self) -> Vec4f
pub fn zzxz(self) -> Vec4f
pub fn zzyx(self) -> Vec4f
pub fn zzyy(self) -> Vec4f
pub fn zzyz(self) -> Vec4f
pub fn zzzx(self) -> Vec4f
pub fn zzzy(self) -> Vec4f
pub fn zzzz(self) -> Vec4f
Trait Implementations§
Source§impl AddAssign<f32> for Vec3f
impl AddAssign<f32> for Vec3f
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for Vec3f
impl AddAssign for Vec3f
Source§fn add_assign(&mut self, rhs: Vec3f)
fn add_assign(&mut self, rhs: Vec3f)
Performs the
+=
operation. Read moreSource§impl DivAssign<f32> for Vec3f
impl DivAssign<f32> for Vec3f
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl DivAssign for Vec3f
impl DivAssign for Vec3f
Source§fn div_assign(&mut self, rhs: Vec3f)
fn div_assign(&mut self, rhs: Vec3f)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Vec3f
impl MulAssign<f32> for Vec3f
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign for Vec3f
impl MulAssign for Vec3f
Source§fn mul_assign(&mut self, rhs: Vec3f)
fn mul_assign(&mut self, rhs: Vec3f)
Performs the
*=
operation. Read moreSource§impl SubAssign<f32> for Vec3f
impl SubAssign<f32> for Vec3f
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for Vec3f
impl SubAssign for Vec3f
Source§fn sub_assign(&mut self, rhs: Vec3f)
fn sub_assign(&mut self, rhs: Vec3f)
Performs the
-=
operation. Read moreimpl Copy for Vec3f
impl StructuralPartialEq for Vec3f
Auto Trait Implementations§
impl Freeze for Vec3f
impl RefUnwindSafe for Vec3f
impl Send for Vec3f
impl Sync for Vec3f
impl Unpin for Vec3f
impl UnwindSafe for Vec3f
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