Struct heron_core::AxisAngle [−][src]
pub struct AxisAngle(_);
An axis-angle representation
Implementations
impl AxisAngle
[src]
impl AxisAngle
[src]#[must_use]pub fn new(axis: Vec3, angle: f32) -> Self
[src]
#[must_use]
pub fn new(axis: Vec3, angle: f32) -> SelfCreate a new axis-angle
#[must_use]pub fn angle_squared(self) -> f32
[src]
#[must_use]
pub fn angle_squared(self) -> f32Squared angle.
In general faster than angle
because it doesn’t need to perform a square-root
#[must_use]pub fn angle(self) -> f32
[src]
#[must_use]
pub fn angle(self) -> f32Angle around the axis.
For comparison you may consider angle_squared
, that doesn’t need to perform a square root.
#[must_use]pub fn axis(self) -> Vec3
[src]
#[must_use]
pub fn axis(self) -> Vec3Returns the axis NOT normalized.
Trait Implementations
impl From<Acceleration> for AxisAngle
[src]
impl From<Acceleration> for AxisAngle
[src]fn from(_: Acceleration) -> Self
[src]
impl GetTypeRegistration for AxisAngle
[src]
impl GetTypeRegistration for AxisAngle
[src]fn get_type_registration() -> TypeRegistration
[src]
impl Reflect for AxisAngle
[src]
impl Reflect for AxisAngle
[src]fn type_name(&self) -> &str
[src]
fn any(&self) -> &dyn Any
[src]
fn any_mut(&mut self) -> &mut dyn Any
[src]
fn clone_value(&self) -> Box<dyn Reflect>
[src]
fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>
[src]
fn apply(&mut self, value: &dyn Reflect)
[src]
fn reflect_ref(&self) -> ReflectRef<'_>
[src]
fn reflect_mut(&mut self) -> ReflectMut<'_>
[src]
fn serializable(&self) -> Option<Serializable<'_>>
[src]
fn reflect_hash(&self) -> Option<u64>
[src]
fn reflect_partial_eq(&self, value: &dyn Reflect) -> Option<bool>
[src]
impl StructuralPartialEq for AxisAngle
[src]
impl StructuralPartialEq for AxisAngle
[src]Auto Trait Implementations
impl RefUnwindSafe for AxisAngle
impl RefUnwindSafe for AxisAngle
impl UnwindSafe for AxisAngle
impl UnwindSafe for AxisAngle
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
impl<T> GetPath for T where
T: Reflect,
impl<T> GetPath for T where
T: Reflect,
pub fn path(
&'r self,
path: &'p str
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
&'r self,
path: &'p str
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
pub fn path_mut(
&'r mut self,
path: &'p str
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
&'r mut self,
path: &'p str
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
pub fn get_path<T>(
&'r self,
path: &'p str
) -> Result<&'r T, ReflectPathError<'p>> where
T: Reflect,
&'r self,
path: &'p str
) -> Result<&'r T, ReflectPathError<'p>> where
T: Reflect,
pub fn get_path_mut<T>(
&'r mut self,
path: &'p str
) -> Result<&'r mut T, ReflectPathError<'p>> where
T: Reflect,
&'r mut self,
path: &'p str
) -> Result<&'r mut T, ReflectPathError<'p>> where
T: Reflect,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,