#[repr(C, align(16))]pub struct Rotation {
pub x: Vector4,
pub y: Vector4,
pub z: Vector4,
}
Expand description
Rotation (same as [Matrix3
])
§C++ Info
- name:
hkRotation
- type_size:
48
(x86)/48
(x86_64) - align:
16
(x86)/16
(x86_64)
§Examples
use havok_types::{Rotation, Vector4};
assert_eq!(Rotation::new(
Vector4::new(0.0, 0.0, 0.0, 0.0),
Vector4::new(-0.0, 0.0, 1.0, 0.0),
Vector4::new(1.0, 1.0, 0.0, 0.0),
).to_string(), "(0.000000 0.000000 0.000000)(-0.000000 0.000000 1.000000)(1.000000 1.000000 0.000000)");
§Note
Vector4::w
(4th) isn’t used.
Fields§
§x: Vector4
§C++ Info
- name:
x
(ctype:hkVector4
) - offset:
0
(x86)/0
(x86_64) - type_size:
16
(x86)/16
(x86_64)
§NOTE
Vector4::w
(4th) isn’t used(always 0.0).
y: Vector4
§C++ Info
- name:
y
(ctype:hkVector4
) - offset:
16
(x86)/16
(x86_64) - type_size:
16
(x86)/16
(x86_64)
§NOTE
Vector4::w
(4th) isn’t used(always 0.0).
z: Vector4
§C++ Info
- name:
z
(ctype:hkVector4
) - offset:
32
(x86)/32
(x86_64) - type_size:
16
(x86)/16
(x86_64)
§NOTE
Vector4::w
(4th) isn’t used(always 0.0).
Implementations§
Trait Implementations§
Source§impl PartialOrd for Rotation
impl PartialOrd for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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