pub struct FbxGeometricTransform {
pub translation: Option<[f32; 3]>,
pub rotation: Option<[f32; 3]>,
pub scaling: Option<[f32; 3]>,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
A Model’s Geometric* properties, in authored FBX units and degrees.
FBX applies these to the geometry attached to a node and to nothing else: unlike the rest of the transform stack they are not inherited by child nodes, so they belong to the mesh instance rather than to the node. Exporters write them for every object whose pivot is not at its mesh origin.
Fields§
§translation: Option<[f32; 3]>GeometricTranslation in source units.
rotation: Option<[f32; 3]>GeometricRotation in degrees.
scaling: Option<[f32; 3]>GeometricScaling.
Implementations§
Source§impl FbxGeometricTransform
impl FbxGeometricTransform
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Whether every authored component is its FBX default.
Sourcepub fn matrix(&self) -> FbxTransform
pub fn matrix(&self) -> FbxTransform
The composed Gt * Gr * Gs matrix, in the same packed column-major
layout as FbxTransform.
Trait Implementations§
Source§impl Clone for FbxGeometricTransform
impl Clone for FbxGeometricTransform
Source§fn clone(&self) -> FbxGeometricTransform
fn clone(&self) -> FbxGeometricTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FbxGeometricTransform
impl Debug for FbxGeometricTransform
Source§impl Default for FbxGeometricTransform
impl Default for FbxGeometricTransform
Source§fn default() -> FbxGeometricTransform
fn default() -> FbxGeometricTransform
Returns the “default value” for a type. Read more
Source§impl PartialEq for FbxGeometricTransform
impl PartialEq for FbxGeometricTransform
impl StructuralPartialEq for FbxGeometricTransform
Auto Trait Implementations§
impl Freeze for FbxGeometricTransform
impl RefUnwindSafe for FbxGeometricTransform
impl Send for FbxGeometricTransform
impl Sync for FbxGeometricTransform
impl Unpin for FbxGeometricTransform
impl UnsafeUnpin for FbxGeometricTransform
impl UnwindSafe for FbxGeometricTransform
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