Struct hapi_rs::node::TransformEuler
source · [−]pub struct TransformEuler { /* private fields */ }
Expand description
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl Clone for TransformEuler
impl Clone for TransformEuler
sourcefn clone(&self) -> TransformEuler
fn clone(&self) -> TransformEuler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransformEuler
impl Debug for TransformEuler
Auto Trait Implementations
impl RefUnwindSafe for TransformEuler
impl Send for TransformEuler
impl Sync for TransformEuler
impl Unpin for TransformEuler
impl UnwindSafe for TransformEuler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more