pub struct Transform { /* private fields */ }
Implementations
sourceimpl Transform
impl Transform
pub fn new() -> Self
pub fn translate(&self) -> &float3
pub fn scale(&self) -> &float3
pub fn rotation(&self) -> &float3
pub fn transform(&self) -> &float4x4
pub fn transform_inverse(&self) -> &float4x4
pub fn set_translate(&mut self, pos: float3)
pub fn set_scale(&mut self, sz: float3)
pub fn set_rotation(&mut self, rot: float3)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.