#[repr(C)]pub struct Vector3<T> {
pub x: T,
pub y: T,
pub z: T,
}
Fields§
§x: T
§y: T
§z: T
Implementations§
Trait Implementations§
Source§impl AttributeDataTypeGetter for Vector3<f32>
impl AttributeDataTypeGetter for Vector3<f32>
Source§impl AttributeDataTypeGetter for Vector3<i16>
impl AttributeDataTypeGetter for Vector3<i16>
Source§impl AttributeDataTypeGetter for Vector3<i32>
impl AttributeDataTypeGetter for Vector3<i32>
Source§impl AttributeDataTypeGetter for Vector3<i8>
impl AttributeDataTypeGetter for Vector3<i8>
Source§impl AttributeDataTypeGetter for Vector3<u32>
impl AttributeDataTypeGetter for Vector3<u32>
Source§impl AttributeDataTypeGetter for Vector3<u8>
impl AttributeDataTypeGetter for Vector3<u8>
Source§impl<T> CrossProduct for Vector3<T>where
T: Scalar,
impl<T> CrossProduct for Vector3<T>where
T: Scalar,
Source§impl<T> FloatVector<T> for Vector3<T>where
T: FloatScalar,
impl<T> FloatVector<T> for Vector3<T>where
T: FloatScalar,
Source§impl<T> Swizzle3<T> for Vector3<T>where
T: Scalar,
impl<T> Swizzle3<T> for Vector3<T>where
T: Scalar,
fn xxx(&self) -> Vector3<T>
fn xxy(&self) -> Vector3<T>
fn xxz(&self) -> Vector3<T>
fn xyx(&self) -> Vector3<T>
fn xyy(&self) -> Vector3<T>
fn xyz(&self) -> Vector3<T>
fn xzx(&self) -> Vector3<T>
fn xzy(&self) -> Vector3<T>
fn xzz(&self) -> Vector3<T>
fn yxx(&self) -> Vector3<T>
fn yxy(&self) -> Vector3<T>
fn yxz(&self) -> Vector3<T>
fn yyx(&self) -> Vector3<T>
fn yyy(&self) -> Vector3<T>
fn yyz(&self) -> Vector3<T>
fn yzx(&self) -> Vector3<T>
fn yzy(&self) -> Vector3<T>
fn yzz(&self) -> Vector3<T>
fn zxx(&self) -> Vector3<T>
fn zxy(&self) -> Vector3<T>
fn zxz(&self) -> Vector3<T>
fn zyx(&self) -> Vector3<T>
fn zyy(&self) -> Vector3<T>
fn zyz(&self) -> Vector3<T>
fn zzx(&self) -> Vector3<T>
fn zzy(&self) -> Vector3<T>
fn zzz(&self) -> Vector3<T>
Source§impl UniformDataTypeGetter for Vector3<f32>
impl UniformDataTypeGetter for Vector3<f32>
Source§impl UniformDataTypeGetter for Vector3<i32>
impl UniformDataTypeGetter for Vector3<i32>
Source§impl UniformDataTypeGetter for Vector3<u32>
impl UniformDataTypeGetter for Vector3<u32>
Source§impl<T> Vector<T> for Vector3<T>where
T: Scalar,
impl<T> Vector<T> for Vector3<T>where
T: Scalar,
fn zero() -> Vector3<T>
fn dot(l: &Vector3<T>, r: &Vector3<T>) -> T
fn add_vv(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn sub_vv(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn mul_vv(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn div_vv(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn mul_vs(l: &Vector3<T>, r: T) -> Vector3<T>
fn div_vs(l: &Vector3<T>, r: T) -> Vector3<T>
fn rem_vv(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn min(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
fn max(l: &Vector3<T>, r: &Vector3<T>) -> Vector3<T>
impl<T> Copy for Vector3<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for Vector3<T>where
T: Freeze,
impl<T> RefUnwindSafe for Vector3<T>where
T: RefUnwindSafe,
impl<T> Send for Vector3<T>where
T: Send,
impl<T> Sync for Vector3<T>where
T: Sync,
impl<T> Unpin for Vector3<T>where
T: Unpin,
impl<T> UnwindSafe for Vector3<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