Struct Vec3
#[repr(C)]pub struct Vec3<T> {
pub x: T,
pub y: T,
pub z: T,
}Fields§
§x: T§y: T§z: TImplementations§
§impl<T> Vec3<T>
impl<T> Vec3<T>
pub const fn new(x: T, y: T, z: T) -> Vec3<T>
pub const fn as_array(&self) -> &[T; 3]
pub const fn as_array_mut(&mut self) -> &mut [T; 3]
pub const fn from_array_ref(a: &[T; 3]) -> &Vec3<T>
pub const fn from_array_mut(a: &mut [T; 3]) -> &mut Vec3<T>
pub const fn into_array(self) -> [T; 3]
pub const fn from_array(a: [T; 3]) -> Vec3<T>
pub fn from_fn(f: impl FnMut(usize) -> T) -> Vec3<T>
pub fn map<U>(self, f: impl Fn(T) -> U) -> Vec3<U>
pub fn zip<U, R>(self, rhs: Vec3<U>, f: impl Fn(&T, &U) -> R) -> Vec3<R>
§impl<T> Vec3<T>where
T: Primitive,
impl<T> Vec3<T>where
T: Primitive,
pub const fn into_array_const(self) -> [T; 3]
pub const fn from_array_const(a: [T; 3]) -> Vec3<T>
§impl<T> Vec3<T>where
T: Number,
impl<T> Vec3<T>where
T: Number,
pub fn sum(self) -> T
pub fn dot(self, rhs: Vec3<T>) -> T
pub fn length_sq(self) -> T
pub fn length(self) -> f64
pub fn normalized(self) -> Vec3<T>
pub fn lerp(self, b: Vec3<T>, t: T) -> Vec3<T>
pub fn lerp_separately(self, b: Vec3<T>, t: Vec3<T>) -> Vec3<T>
pub fn inv_lerp(self, b: Vec3<T>, x: Vec3<T>) -> T
§impl<T> Vec3<T>where
T: Copy,
impl<T> Vec3<T>where
T: Copy,
pub fn xx(&self) -> Vec2<T>
pub fn xy(&self) -> Vec2<T>
pub fn xz(&self) -> Vec2<T>
pub fn xn(&self, y: T) -> Vec2<T>
pub fn yx(&self) -> Vec2<T>
pub fn yy(&self) -> Vec2<T>
pub fn yz(&self) -> Vec2<T>
pub fn yn(&self, y: T) -> Vec2<T>
pub fn zx(&self) -> Vec2<T>
pub fn zy(&self) -> Vec2<T>
pub fn zz(&self) -> Vec2<T>
pub fn zn(&self, y: T) -> Vec2<T>
pub fn nx(&self, x: T) -> Vec2<T>
pub fn ny(&self, x: T) -> Vec2<T>
pub fn nz(&self, x: T) -> Vec2<T>
§impl<T> Vec3<T>where
T: Copy,
impl<T> Vec3<T>where
T: Copy,
pub fn xxx(&self) -> Vec3<T>
pub fn xxy(&self) -> Vec3<T>
pub fn xxz(&self) -> Vec3<T>
pub fn xxn(&self, z: T) -> Vec3<T>
pub fn xyx(&self) -> Vec3<T>
pub fn xyy(&self) -> Vec3<T>
pub fn xyz(&self) -> Vec3<T>
pub fn xyn(&self, z: T) -> Vec3<T>
pub fn xzx(&self) -> Vec3<T>
pub fn xzy(&self) -> Vec3<T>
pub fn xzz(&self) -> Vec3<T>
pub fn xzn(&self, z: T) -> Vec3<T>
pub fn xnx(&self, y: T) -> Vec3<T>
pub fn xny(&self, y: T) -> Vec3<T>
pub fn xnz(&self, y: T) -> Vec3<T>
pub fn xnn(&self, y: T, z: T) -> Vec3<T>
pub fn yxx(&self) -> Vec3<T>
pub fn yxy(&self) -> Vec3<T>
pub fn yxz(&self) -> Vec3<T>
pub fn yxn(&self, z: T) -> Vec3<T>
pub fn yyx(&self) -> Vec3<T>
pub fn yyy(&self) -> Vec3<T>
pub fn yyz(&self) -> Vec3<T>
pub fn yyn(&self, z: T) -> Vec3<T>
pub fn yzx(&self) -> Vec3<T>
pub fn yzy(&self) -> Vec3<T>
pub fn yzz(&self) -> Vec3<T>
pub fn yzn(&self, z: T) -> Vec3<T>
pub fn ynx(&self, y: T) -> Vec3<T>
pub fn yny(&self, y: T) -> Vec3<T>
pub fn ynz(&self, y: T) -> Vec3<T>
pub fn ynn(&self, y: T, z: T) -> Vec3<T>
pub fn zxx(&self) -> Vec3<T>
pub fn zxy(&self) -> Vec3<T>
pub fn zxz(&self) -> Vec3<T>
pub fn zxn(&self, z: T) -> Vec3<T>
pub fn zyx(&self) -> Vec3<T>
pub fn zyy(&self) -> Vec3<T>
pub fn zyz(&self) -> Vec3<T>
pub fn zyn(&self, z: T) -> Vec3<T>
pub fn zzx(&self) -> Vec3<T>
pub fn zzy(&self) -> Vec3<T>
pub fn zzz(&self) -> Vec3<T>
pub fn zzn(&self, z: T) -> Vec3<T>
pub fn znx(&self, y: T) -> Vec3<T>
pub fn zny(&self, y: T) -> Vec3<T>
pub fn znz(&self, y: T) -> Vec3<T>
pub fn znn(&self, y: T, z: T) -> Vec3<T>
pub fn nxx(&self, x: T) -> Vec3<T>
pub fn nxy(&self, x: T) -> Vec3<T>
pub fn nxz(&self, x: T) -> Vec3<T>
pub fn nxn(&self, x: T, z: T) -> Vec3<T>
pub fn nyx(&self, x: T) -> Vec3<T>
pub fn nyy(&self, x: T) -> Vec3<T>
pub fn nyz(&self, x: T) -> Vec3<T>
pub fn nyn(&self, x: T, z: T) -> Vec3<T>
pub fn nzx(&self, x: T) -> Vec3<T>
pub fn nzy(&self, x: T) -> Vec3<T>
pub fn nzz(&self, x: T) -> Vec3<T>
pub fn nzn(&self, x: T, z: T) -> Vec3<T>
pub fn nnx(&self, x: T, y: T) -> Vec3<T>
pub fn nny(&self, x: T, y: T) -> Vec3<T>
pub fn nnz(&self, x: T, y: T) -> Vec3<T>
§impl<T> Vec3<T>where
T: Copy,
impl<T> Vec3<T>where
T: Copy,
pub fn xxxx(&self) -> Vec4<T>
pub fn xxxy(&self) -> Vec4<T>
pub fn xxxz(&self) -> Vec4<T>
pub fn xxxn(&self, w: T) -> Vec4<T>
pub fn xxyx(&self) -> Vec4<T>
pub fn xxyy(&self) -> Vec4<T>
pub fn xxyz(&self) -> Vec4<T>
pub fn xxyn(&self, w: T) -> Vec4<T>
pub fn xxzx(&self) -> Vec4<T>
pub fn xxzy(&self) -> Vec4<T>
pub fn xxzz(&self) -> Vec4<T>
pub fn xxzn(&self, w: T) -> Vec4<T>
pub fn xxnx(&self, z: T) -> Vec4<T>
pub fn xxny(&self, z: T) -> Vec4<T>
pub fn xxnz(&self, z: T) -> Vec4<T>
pub fn xxnn(&self, z: T, w: T) -> Vec4<T>
pub fn xyxx(&self) -> Vec4<T>
pub fn xyxy(&self) -> Vec4<T>
pub fn xyxz(&self) -> Vec4<T>
pub fn xyxn(&self, w: T) -> Vec4<T>
pub fn xyyx(&self) -> Vec4<T>
pub fn xyyy(&self) -> Vec4<T>
pub fn xyyz(&self) -> Vec4<T>
pub fn xyyn(&self, w: T) -> Vec4<T>
pub fn xyzx(&self) -> Vec4<T>
pub fn xyzy(&self) -> Vec4<T>
pub fn xyzz(&self) -> Vec4<T>
pub fn xyzn(&self, w: T) -> Vec4<T>
pub fn xynx(&self, z: T) -> Vec4<T>
pub fn xyny(&self, z: T) -> Vec4<T>
pub fn xynz(&self, z: T) -> Vec4<T>
pub fn xynn(&self, z: T, w: T) -> Vec4<T>
pub fn xzxx(&self) -> Vec4<T>
pub fn xzxy(&self) -> Vec4<T>
pub fn xzxz(&self) -> Vec4<T>
pub fn xzxn(&self, w: T) -> Vec4<T>
pub fn xzyx(&self) -> Vec4<T>
pub fn xzyy(&self) -> Vec4<T>
pub fn xzyz(&self) -> Vec4<T>
pub fn xzyn(&self, w: T) -> Vec4<T>
pub fn xzzx(&self) -> Vec4<T>
pub fn xzzy(&self) -> Vec4<T>
pub fn xzzz(&self) -> Vec4<T>
pub fn xzzn(&self, w: T) -> Vec4<T>
pub fn xznx(&self, z: T) -> Vec4<T>
pub fn xzny(&self, z: T) -> Vec4<T>
pub fn xznz(&self, z: T) -> Vec4<T>
pub fn xznn(&self, z: T, w: T) -> Vec4<T>
pub fn xnxx(&self, y: T) -> Vec4<T>
pub fn xnxy(&self, y: T) -> Vec4<T>
pub fn xnxz(&self, y: T) -> Vec4<T>
pub fn xnxn(&self, y: T, w: T) -> Vec4<T>
pub fn xnyx(&self, y: T) -> Vec4<T>
pub fn xnyy(&self, y: T) -> Vec4<T>
pub fn xnyz(&self, y: T) -> Vec4<T>
pub fn xnyn(&self, y: T, w: T) -> Vec4<T>
pub fn xnzx(&self, y: T) -> Vec4<T>
pub fn xnzy(&self, y: T) -> Vec4<T>
pub fn xnzz(&self, y: T) -> Vec4<T>
pub fn xnzn(&self, y: T, w: T) -> Vec4<T>
pub fn xnnx(&self, y: T, z: T) -> Vec4<T>
pub fn xnny(&self, y: T, z: T) -> Vec4<T>
pub fn xnnz(&self, y: T, z: T) -> Vec4<T>
pub fn xnnn(&self, y: T, z: T, w: T) -> Vec4<T>
pub fn yxxx(&self) -> Vec4<T>
pub fn yxxy(&self) -> Vec4<T>
pub fn yxxz(&self) -> Vec4<T>
pub fn yxxn(&self, w: T) -> Vec4<T>
pub fn yxyx(&self) -> Vec4<T>
pub fn yxyy(&self) -> Vec4<T>
pub fn yxyz(&self) -> Vec4<T>
pub fn yxyn(&self, w: T) -> Vec4<T>
pub fn yxzx(&self) -> Vec4<T>
pub fn yxzy(&self) -> Vec4<T>
pub fn yxzz(&self) -> Vec4<T>
pub fn yxzn(&self, w: T) -> Vec4<T>
pub fn yxnx(&self, z: T) -> Vec4<T>
pub fn yxny(&self, z: T) -> Vec4<T>
pub fn yxnz(&self, z: T) -> Vec4<T>
pub fn yxnn(&self, z: T, w: T) -> Vec4<T>
pub fn yyxx(&self) -> Vec4<T>
pub fn yyxy(&self) -> Vec4<T>
pub fn yyxz(&self) -> Vec4<T>
pub fn yyxn(&self, w: T) -> Vec4<T>
pub fn yyyx(&self) -> Vec4<T>
pub fn yyyy(&self) -> Vec4<T>
pub fn yyyz(&self) -> Vec4<T>
pub fn yyyn(&self, w: T) -> Vec4<T>
pub fn yyzx(&self) -> Vec4<T>
pub fn yyzy(&self) -> Vec4<T>
pub fn yyzz(&self) -> Vec4<T>
pub fn yyzn(&self, w: T) -> Vec4<T>
pub fn yynx(&self, z: T) -> Vec4<T>
pub fn yyny(&self, z: T) -> Vec4<T>
pub fn yynz(&self, z: T) -> Vec4<T>
pub fn yynn(&self, z: T, w: T) -> Vec4<T>
pub fn yzxx(&self) -> Vec4<T>
pub fn yzxy(&self) -> Vec4<T>
pub fn yzxz(&self) -> Vec4<T>
pub fn yzxn(&self, w: T) -> Vec4<T>
pub fn yzyx(&self) -> Vec4<T>
pub fn yzyy(&self) -> Vec4<T>
pub fn yzyz(&self) -> Vec4<T>
pub fn yzyn(&self, w: T) -> Vec4<T>
pub fn yzzx(&self) -> Vec4<T>
pub fn yzzy(&self) -> Vec4<T>
pub fn yzzz(&self) -> Vec4<T>
pub fn yzzn(&self, w: T) -> Vec4<T>
pub fn yznx(&self, z: T) -> Vec4<T>
pub fn yzny(&self, z: T) -> Vec4<T>
pub fn yznz(&self, z: T) -> Vec4<T>
pub fn yznn(&self, z: T, w: T) -> Vec4<T>
pub fn ynxx(&self, y: T) -> Vec4<T>
pub fn ynxy(&self, y: T) -> Vec4<T>
pub fn ynxz(&self, y: T) -> Vec4<T>
pub fn ynxn(&self, y: T, w: T) -> Vec4<T>
pub fn ynyx(&self, y: T) -> Vec4<T>
pub fn ynyy(&self, y: T) -> Vec4<T>
pub fn ynyz(&self, y: T) -> Vec4<T>
pub fn ynyn(&self, y: T, w: T) -> Vec4<T>
pub fn ynzx(&self, y: T) -> Vec4<T>
pub fn ynzy(&self, y: T) -> Vec4<T>
pub fn ynzz(&self, y: T) -> Vec4<T>
pub fn ynzn(&self, y: T, w: T) -> Vec4<T>
pub fn ynnx(&self, y: T, z: T) -> Vec4<T>
pub fn ynny(&self, y: T, z: T) -> Vec4<T>
pub fn ynnz(&self, y: T, z: T) -> Vec4<T>
pub fn ynnn(&self, y: T, z: T, w: T) -> Vec4<T>
pub fn zxxx(&self) -> Vec4<T>
pub fn zxxy(&self) -> Vec4<T>
pub fn zxxz(&self) -> Vec4<T>
pub fn zxxn(&self, w: T) -> Vec4<T>
pub fn zxyx(&self) -> Vec4<T>
pub fn zxyy(&self) -> Vec4<T>
pub fn zxyz(&self) -> Vec4<T>
pub fn zxyn(&self, w: T) -> Vec4<T>
pub fn zxzx(&self) -> Vec4<T>
pub fn zxzy(&self) -> Vec4<T>
pub fn zxzz(&self) -> Vec4<T>
pub fn zxzn(&self, w: T) -> Vec4<T>
pub fn zxnx(&self, z: T) -> Vec4<T>
pub fn zxny(&self, z: T) -> Vec4<T>
pub fn zxnz(&self, z: T) -> Vec4<T>
pub fn zxnn(&self, z: T, w: T) -> Vec4<T>
pub fn zyxx(&self) -> Vec4<T>
pub fn zyxy(&self) -> Vec4<T>
pub fn zyxz(&self) -> Vec4<T>
pub fn zyxn(&self, w: T) -> Vec4<T>
pub fn zyyx(&self) -> Vec4<T>
pub fn zyyy(&self) -> Vec4<T>
pub fn zyyz(&self) -> Vec4<T>
pub fn zyyn(&self, w: T) -> Vec4<T>
pub fn zyzx(&self) -> Vec4<T>
pub fn zyzy(&self) -> Vec4<T>
pub fn zyzz(&self) -> Vec4<T>
pub fn zyzn(&self, w: T) -> Vec4<T>
pub fn zynx(&self, z: T) -> Vec4<T>
pub fn zyny(&self, z: T) -> Vec4<T>
pub fn zynz(&self, z: T) -> Vec4<T>
pub fn zynn(&self, z: T, w: T) -> Vec4<T>
pub fn zzxx(&self) -> Vec4<T>
pub fn zzxy(&self) -> Vec4<T>
pub fn zzxz(&self) -> Vec4<T>
pub fn zzxn(&self, w: T) -> Vec4<T>
pub fn zzyx(&self) -> Vec4<T>
pub fn zzyy(&self) -> Vec4<T>
pub fn zzyz(&self) -> Vec4<T>
pub fn zzyn(&self, w: T) -> Vec4<T>
pub fn zzzx(&self) -> Vec4<T>
pub fn zzzy(&self) -> Vec4<T>
pub fn zzzz(&self) -> Vec4<T>
pub fn zzzn(&self, w: T) -> Vec4<T>
pub fn zznx(&self, z: T) -> Vec4<T>
pub fn zzny(&self, z: T) -> Vec4<T>
pub fn zznz(&self, z: T) -> Vec4<T>
pub fn zznn(&self, z: T, w: T) -> Vec4<T>
pub fn znxx(&self, y: T) -> Vec4<T>
pub fn znxy(&self, y: T) -> Vec4<T>
pub fn znxz(&self, y: T) -> Vec4<T>
pub fn znxn(&self, y: T, w: T) -> Vec4<T>
pub fn znyx(&self, y: T) -> Vec4<T>
pub fn znyy(&self, y: T) -> Vec4<T>
pub fn znyz(&self, y: T) -> Vec4<T>
pub fn znyn(&self, y: T, w: T) -> Vec4<T>
pub fn znzx(&self, y: T) -> Vec4<T>
pub fn znzy(&self, y: T) -> Vec4<T>
pub fn znzz(&self, y: T) -> Vec4<T>
pub fn znzn(&self, y: T, w: T) -> Vec4<T>
pub fn znnx(&self, y: T, z: T) -> Vec4<T>
pub fn znny(&self, y: T, z: T) -> Vec4<T>
pub fn znnz(&self, y: T, z: T) -> Vec4<T>
pub fn znnn(&self, y: T, z: T, w: T) -> Vec4<T>
pub fn nxxx(&self, x: T) -> Vec4<T>
pub fn nxxy(&self, x: T) -> Vec4<T>
pub fn nxxz(&self, x: T) -> Vec4<T>
pub fn nxxn(&self, x: T, w: T) -> Vec4<T>
pub fn nxyx(&self, x: T) -> Vec4<T>
pub fn nxyy(&self, x: T) -> Vec4<T>
pub fn nxyz(&self, x: T) -> Vec4<T>
pub fn nxyn(&self, x: T, w: T) -> Vec4<T>
pub fn nxzx(&self, x: T) -> Vec4<T>
pub fn nxzy(&self, x: T) -> Vec4<T>
pub fn nxzz(&self, x: T) -> Vec4<T>
pub fn nxzn(&self, x: T, w: T) -> Vec4<T>
pub fn nxnx(&self, x: T, z: T) -> Vec4<T>
pub fn nxny(&self, x: T, z: T) -> Vec4<T>
pub fn nxnz(&self, x: T, z: T) -> Vec4<T>
pub fn nxnn(&self, x: T, z: T, w: T) -> Vec4<T>
pub fn nyxx(&self, x: T) -> Vec4<T>
pub fn nyxy(&self, x: T) -> Vec4<T>
pub fn nyxz(&self, x: T) -> Vec4<T>
pub fn nyxn(&self, x: T, w: T) -> Vec4<T>
pub fn nyyx(&self, x: T) -> Vec4<T>
pub fn nyyy(&self, x: T) -> Vec4<T>
pub fn nyyz(&self, x: T) -> Vec4<T>
pub fn nyyn(&self, x: T, w: T) -> Vec4<T>
pub fn nyzx(&self, x: T) -> Vec4<T>
pub fn nyzy(&self, x: T) -> Vec4<T>
pub fn nyzz(&self, x: T) -> Vec4<T>
pub fn nyzn(&self, x: T, w: T) -> Vec4<T>
pub fn nynx(&self, x: T, z: T) -> Vec4<T>
pub fn nyny(&self, x: T, z: T) -> Vec4<T>
pub fn nynz(&self, x: T, z: T) -> Vec4<T>
pub fn nynn(&self, x: T, z: T, w: T) -> Vec4<T>
pub fn nzxx(&self, x: T) -> Vec4<T>
pub fn nzxy(&self, x: T) -> Vec4<T>
pub fn nzxz(&self, x: T) -> Vec4<T>
pub fn nzxn(&self, x: T, w: T) -> Vec4<T>
pub fn nzyx(&self, x: T) -> Vec4<T>
pub fn nzyy(&self, x: T) -> Vec4<T>
pub fn nzyz(&self, x: T) -> Vec4<T>
pub fn nzyn(&self, x: T, w: T) -> Vec4<T>
pub fn nzzx(&self, x: T) -> Vec4<T>
pub fn nzzy(&self, x: T) -> Vec4<T>
pub fn nzzz(&self, x: T) -> Vec4<T>
pub fn nzzn(&self, x: T, w: T) -> Vec4<T>
pub fn nznx(&self, x: T, z: T) -> Vec4<T>
pub fn nzny(&self, x: T, z: T) -> Vec4<T>
pub fn nznz(&self, x: T, z: T) -> Vec4<T>
pub fn nznn(&self, x: T, z: T, w: T) -> Vec4<T>
pub fn nnxx(&self, x: T, y: T) -> Vec4<T>
pub fn nnxy(&self, x: T, y: T) -> Vec4<T>
pub fn nnxz(&self, x: T, y: T) -> Vec4<T>
pub fn nnxn(&self, x: T, y: T, w: T) -> Vec4<T>
pub fn nnyx(&self, x: T, y: T) -> Vec4<T>
pub fn nnyy(&self, x: T, y: T) -> Vec4<T>
pub fn nnyz(&self, x: T, y: T) -> Vec4<T>
pub fn nnyn(&self, x: T, y: T, w: T) -> Vec4<T>
pub fn nnzx(&self, x: T, y: T) -> Vec4<T>
pub fn nnzy(&self, x: T, y: T) -> Vec4<T>
pub fn nnzz(&self, x: T, y: T) -> Vec4<T>
pub fn nnzn(&self, x: T, y: T, w: T) -> Vec4<T>
pub fn nnnx(&self, x: T, y: T, z: T) -> Vec4<T>
pub fn nnny(&self, x: T, y: T, z: T) -> Vec4<T>
pub fn nnnz(&self, x: T, y: T, z: T) -> Vec4<T>
Trait Implementations§
§impl<T, U> AddAssign<Vec3<U>> for Vec3<T>where
T: AddAssign<U>,
impl<T, U> AddAssign<Vec3<U>> for Vec3<T>where
T: AddAssign<U>,
§fn add_assign(&mut self, rhs: Vec3<U>)
fn add_assign(&mut self, rhs: Vec3<U>)
Performs the
+= operation. Read moreimpl<T> AllBitVariationsValid for Vec3<T>where
T: AllBitVariationsValid,
impl<T> AllBitsInit for Vec3<T>where
T: AllBitsInit,
impl<T> Copy for Vec3<T>where
T: Copy,
§impl<'de, T> Deserialize<'de> for Vec3<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Vec3<T>where
T: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vec3<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vec3<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> DivAssign for Vec3<T>where
T: DivAssign,
impl<T> DivAssign for Vec3<T>where
T: DivAssign,
§fn div_assign(&mut self, rhs: Vec3<T>)
fn div_assign(&mut self, rhs: Vec3<T>)
Performs the
/= operation. Read more§impl<T> DivAssign<T> for Vec3<T>
impl<T> DivAssign<T> for Vec3<T>
§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreimpl<T> Eq for Vec3<T>where
T: Eq,
§impl From<Vec3<f32>> for CollisionShape
impl From<Vec3<f32>> for CollisionShape
§fn from(value: Vec3<f32>) -> CollisionShape
fn from(value: Vec3<f32>) -> CollisionShape
Converts to this type from the input type.
§impl<T> MulAssign for Vec3<T>where
T: MulAssign,
impl<T> MulAssign for Vec3<T>where
T: MulAssign,
§fn mul_assign(&mut self, rhs: Vec3<T>)
fn mul_assign(&mut self, rhs: Vec3<T>)
Performs the
*= operation. Read more§impl<T> MulAssign<T> for Vec3<T>
impl<T> MulAssign<T> for Vec3<T>
§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read more§impl<T> Ord for Vec3<T>where
T: Ord,
impl<T> Ord for Vec3<T>where
T: Ord,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl<T> PartialOrd for Vec3<T>where
T: PartialOrd,
impl<T> PartialOrd for Vec3<T>where
T: PartialOrd,
§impl<S, T> Serializable<S> for Vec3<T>
impl<S, T> Serializable<S> for Vec3<T>
fn serialize(&self, ctx: SerializerCtx<'_, S>, path: &str) -> SerializedValue
fn deserialize( &mut self, ctx: SerializerCtx<'_, S>, path: &str, value: &SerializedValue, )
§impl<T> Serialize for Vec3<T>where
T: Serialize,
impl<T> Serialize for Vec3<T>where
T: Serialize,
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> StructuralPartialEq for Vec3<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Forget for Vec3<T>
impl<T> Freeze for Vec3<T>where
T: Freeze,
impl<T> Move for Vec3<T>
impl<T> RefUnwindSafe for Vec3<T>where
T: RefUnwindSafe,
impl<T> Send for Vec3<T>where
T: Send,
impl<T> Sync for Vec3<T>where
T: Sync,
impl<T> Unpin for Vec3<T>where
T: Unpin,
impl<T> UnsafeUnpin for Vec3<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Vec3<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().