Enum pax_engine::api::Rotation
source · pub enum Rotation {
Radians(Numeric),
Degrees(Numeric),
Percent(Numeric),
}Variants§
Implementations§
source§impl Rotation
impl Rotation
pub fn ZERO() -> Rotation
sourcepub fn to_float_0_1(&self) -> f64
pub fn to_float_0_1(&self) -> f64
Returns a float proportional to 0deg : 0.0 :: 360deg :: 1.0, in the domain 𝕗𝟞𝟜
For example, 0rad maps to 0.0, 100% maps to 1.0, and 720deg maps to 2.0
pub fn get_as_radians(&self) -> f64
pub fn get_as_degrees(&self) -> f64
Trait Implementations§
source§impl CoercionRules for Rotation
impl CoercionRules for Rotation
source§impl<'de> Deserialize<'de> for Rotation
impl<'de> Deserialize<'de> for Rotation
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rotation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rotation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for Rotation
impl HelperFunctions for Rotation
source§impl Interpolatable for Rotation
impl Interpolatable for Rotation
source§impl Reflectable for Rotation
impl Reflectable for Rotation
source§fn get_import_path() -> String
fn get_import_path() -> String
The import path is the fully namespace-qualified path for a type, like and a Vec. In both cases of Vec,
the import_path will remain the same.
std::vec::Vec
This is distinct from type_id ONLY when the type has generics, like Vec, where
the type_id is distinct across a Vecfn get_self_pascal_identifier() -> String
fn get_type_id() -> TypeId
fn parse_to_manifest( ctx: ParsingContext, ) -> (ParsingContext, Vec<PropertyDefinition>)
fn get_iterable_type_id() -> Option<TypeId>
source§impl Serialize for Rotation
impl Serialize for Rotation
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToPaxValue for Rotation
impl ToPaxValue for Rotation
fn to_pax_value(self) -> PaxValue
impl Copy for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.