Struct oxygengine_ha_renderer::math::Rotator
source · pub struct Rotator { /* private fields */ }
Implementations§
source§impl Rotator
impl Rotator
pub fn quat(&self) -> Quat
pub fn set_quat(&mut self, value: Quat)
pub fn with_quat<F>(&mut self, f: F)where F: FnMut(&mut Quat),
pub fn eulers(&self) -> Eulers
pub fn set_eulers(&mut self, value: Eulers)
pub fn with_eulers<F>(&mut self, f: F)where F: FnMut(&mut Eulers),
pub fn transform_direction(&self, direction: Vec3) -> Vec3
pub fn interpolate(from: &Self, to: &Self, factor: Scalar) -> Self
pub fn interpolate_many( iter: impl Iterator<Item = (Self, Scalar)> ) -> Option<Self>
pub fn look_at(forward: Vec3, up: Vec3) -> Self
pub fn from_to(from: Vec3, to: Vec3) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rotator
impl<'de> Deserialize<'de> for Rotator
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Rotator> for RotatorDef
impl From<Rotator> for RotatorDef
source§impl From<RotatorDef> for Rotator
impl From<RotatorDef> for Rotator
source§fn from(v: RotatorDef) -> Self
fn from(v: RotatorDef) -> Self
Converts to this type from the input type.
source§impl PartialEq<Rotator> for Rotator
impl PartialEq<Rotator> for Rotator
impl Copy for Rotator
impl StructuralPartialEq for Rotator
Auto Trait Implementations§
impl RefUnwindSafe for Rotator
impl Send for Rotator
impl Sync for Rotator
impl Unpin for Rotator
impl UnwindSafe for Rotator
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more