#[repr(C, align(16))]pub struct QsTransform {
pub transition: Vector4,
pub quaternion: Quaternion,
pub scale: Vector4,
}
Expand description
§QsTransform
§C++ Info
- name:
hkQsTransform
- type_size:
48
(x86)/48
(x86_64) - align:
16
(x86)/16
(x86_64)
§XML representation
Vector4::w
(4th) oftransition
&scale
isn’t used.
<!-- transition: Vector4 --><!-- rotation: Quaternion --><!-- scale: Vector4 -->
(0.000000 0.000000 0.000000)(-0.000000 0.000000 -0.000000 1.000000)(1.000000 1.000000 1.000000)
Fields§
§transition: Vector4
§C++ Info
- name:
transition
(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).
quaternion: Quaternion
§C++ Info
- name:
quaternion
(ctype:hkQuaternion
) - offset:
16
(x86)/16
(x86_64) - type_size:
16
(x86)/16
(x86_64)
scale: Vector4
§C++ Info
- name:
scale
(ctype:hkVector4
) - offset:
32
(x86)/32
(x86_64) - type_size:
16
(x86)/16
(x86_64) scale
:Vector4
§NOTE
Vector4::w
(4th) isn’t used(always 0.0).
Implementations§
Source§impl QsTransform
impl QsTransform
Sourcepub const fn new(
transition: Vector4,
quaternion: Quaternion,
scale: Vector4,
) -> Self
pub const fn new( transition: Vector4, quaternion: Quaternion, scale: Vector4, ) -> Self
Creates a new QsTransform
pub fn to_le_bytes(&self) -> [u8; 48]
pub fn to_be_bytes(&self) -> [u8; 48]
Trait Implementations§
Source§impl Clone for QsTransform
impl Clone for QsTransform
Source§fn clone(&self) -> QsTransform
fn clone(&self) -> QsTransform
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 QsTransform
impl Debug for QsTransform
Source§impl Default for QsTransform
impl Default for QsTransform
Source§fn default() -> QsTransform
fn default() -> QsTransform
Returns the “default value” for a type. Read more
Source§impl Display for QsTransform
impl Display for QsTransform
Source§impl PartialEq for QsTransform
impl PartialEq for QsTransform
Source§impl PartialOrd for QsTransform
impl PartialOrd for QsTransform
impl StructuralPartialEq for QsTransform
Auto Trait Implementations§
impl Freeze for QsTransform
impl RefUnwindSafe for QsTransform
impl Send for QsTransform
impl Sync for QsTransform
impl Unpin for QsTransform
impl UnwindSafe for QsTransform
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