pub struct TransformEuler(/* private fields */);
Expand description
Implementations§
Source§impl TransformEuler
impl TransformEuler
pub fn position(&self) -> [f32; 3]
pub fn set_position(&mut self, val: [f32; 3])
pub fn with_position(self, val: [f32; 3]) -> Self
pub fn rotation(&self) -> [f32; 3]
pub fn set_rotation(&mut self, val: [f32; 3])
pub fn with_rotation(self, val: [f32; 3]) -> Self
pub fn scale(&self) -> [f32; 3]
pub fn set_scale(&mut self, val: [f32; 3])
pub fn with_scale(self, val: [f32; 3]) -> Self
pub fn shear(&self) -> [f32; 3]
pub fn set_shear(&mut self, val: [f32; 3])
pub fn with_shear(self, val: [f32; 3]) -> Self
pub fn roation_order(&self) -> XYZOrder
pub fn set_roation_order(&mut self, val: XYZOrder)
pub fn with_roation_order(self, val: XYZOrder) -> Self
pub fn rst_order(&self) -> RSTOrder
pub fn set_rst_order(&mut self, val: RSTOrder)
pub fn with_rst_order(self, val: RSTOrder) -> Self
pub fn ptr(&self) -> *const HAPI_TransformEuler
Source§impl TransformEuler
impl TransformEuler
pub fn convert_transform( &self, session: &Session, rst_order: RSTOrder, rot_order: XYZOrder, ) -> Result<Self>
pub fn from_matrix( session: &Session, matrix: &[f32; 16], rst_order: RSTOrder, rot_order: XYZOrder, ) -> Result<Self>
pub fn convert_to_matrix(&self, session: &Session) -> Result<[f32; 16]>
Trait Implementations§
Source§impl Clone for TransformEuler
impl Clone for TransformEuler
Source§fn clone(&self) -> TransformEuler
fn clone(&self) -> TransformEuler
Returns a duplicate 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 TransformEuler
impl Debug for TransformEuler
Auto Trait Implementations§
impl Freeze for TransformEuler
impl RefUnwindSafe for TransformEuler
impl Send for TransformEuler
impl Sync for TransformEuler
impl Unpin for TransformEuler
impl UnwindSafe for TransformEuler
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