#[repr(C)]pub struct hkTransform {
pub rotation: hkRotation,
pub translation: hkVector4,
}
Expand description
Represents a 3D transform in the Havok system, combining rotation and translation.
This struct consists of a rotation matrix and a translation vector.
§Memory Layout:
rotation
: 3x3 rotation matrix (0x00 - 0x2F)translation
: 4D translation vector (0x30 - 0x3F)
Fields§
§rotation: hkRotation
The rotation component of the transform.
- Offset: 0x00
translation: hkVector4
The translation component of the transform.
- Offset: 0x30
Implementations§
Source§impl hkTransform
impl hkTransform
Trait Implementations§
Source§impl Clone for hkTransform
impl Clone for hkTransform
Source§fn clone(&self) -> hkTransform
fn clone(&self) -> hkTransform
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 hkTransform
impl Debug for hkTransform
Source§impl Default for hkTransform
impl Default for hkTransform
impl Copy for hkTransform
Auto Trait Implementations§
impl Freeze for hkTransform
impl RefUnwindSafe for hkTransform
impl Send for hkTransform
impl Sync for hkTransform
impl Unpin for hkTransform
impl UnwindSafe for hkTransform
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