#[repr(C)]pub struct hkQuaternion {
pub vec: hkVector4,
}
Expand description
Represents a quaternion in the Havok system.
This struct wraps a single hkVector4
where the components typically represent
(x, y, z, w) with w being the real part and (x, y, z) the imaginary vector part.
§Memory Layout:
vec
: The quaternion as a 4D vector (0x00 - 0x0F)
Fields§
§vec: hkVector4
The 4D vector storing the quaternion components (x, y, z, w).
- Offset: 0x00
Implementations§
Trait Implementations§
Source§impl Clone for hkQuaternion
impl Clone for hkQuaternion
Source§fn clone(&self) -> hkQuaternion
fn clone(&self) -> hkQuaternion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for hkQuaternion
impl Debug for hkQuaternion
Source§impl Default for hkQuaternion
impl Default for hkQuaternion
impl Copy for hkQuaternion
Auto Trait Implementations§
impl Freeze for hkQuaternion
impl RefUnwindSafe for hkQuaternion
impl Send for hkQuaternion
impl Sync for hkQuaternion
impl Unpin for hkQuaternion
impl UnwindSafe for hkQuaternion
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