pub struct TyVector3<T = f64> {
pub x: T,
pub y: T,
pub z: T,
}Expand description
A 3D vector generic over its component type T.
The component type defaults to f64, so TyVector3 is the f64 vector;
see TyVector3F32, TyVector3F64, and TyVector3U32 for the common
instantiations.
Fields§
§x: TThe x component.
y: TThe y component.
z: TThe z component.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for TyVector3<T>
Source§impl<T: PartialEq> PartialEq for TyVector3<T>
impl<T: PartialEq> PartialEq for TyVector3<T>
impl<T: PartialEq> StructuralPartialEq for TyVector3<T>
Auto Trait Implementations§
impl<T> Freeze for TyVector3<T>where
T: Freeze,
impl<T> RefUnwindSafe for TyVector3<T>where
T: RefUnwindSafe,
impl<T> Send for TyVector3<T>where
T: Send,
impl<T> Sync for TyVector3<T>where
T: Sync,
impl<T> Unpin for TyVector3<T>where
T: Unpin,
impl<T> UnsafeUnpin for TyVector3<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TyVector3<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