#[repr(C, align(16))]pub struct Matrix3 {
pub x: Vector4,
pub y: Vector4,
pub z: Vector4,
}
Expand description
§Matrix3x3
§C++ Info
- name:
hkMatrix3
- type_size:
48
(x86)/48
(x86_64) - align:
16
(x86)/16
(x86_64)
§Examples
use havok_types::{Matrix3, Vector4};
assert_eq!(Matrix3::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 Matrix3
impl PartialOrd for Matrix3
impl StructuralPartialEq for Matrix3
Auto Trait Implementations§
impl Freeze for Matrix3
impl RefUnwindSafe for Matrix3
impl Send for Matrix3
impl Sync for Matrix3
impl Unpin for Matrix3
impl UnwindSafe for Matrix3
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