Struct hapi_rs::node::TransformEuler
source · 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 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 more