Struct SRTValue2D
#[repr(C)]pub struct SRTValue2D {
pub m_scale: Vector2,
pub m_rotation: f32,
pub m_translation: Vector2,
}Expand description
A structure that describes the scale, rotation and translation transformation in 2D space. Rotation is stored as angle in radians.
Fields§
§m_scale: Vector2Scale.
m_rotation: f32Rotation in radians.
m_translation: Vector2Translation.
Implementations§
§impl SRTValue2D
impl SRTValue2D
pub const IDENTITY: SRTValue2D
Trait Implementations§
§impl Clone for SRTValue2D
impl Clone for SRTValue2D
§fn clone(&self) -> SRTValue2D
fn clone(&self) -> SRTValue2D
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SRTValue2D
impl Debug for SRTValue2D
§impl Default for SRTValue2D
impl Default for SRTValue2D
§fn default() -> SRTValue2D
fn default() -> SRTValue2D
Returns the “default value” for a type. Read more
§impl PartialEq for SRTValue2D
impl PartialEq for SRTValue2D
§impl VariantConstraint for SRTValue2D
impl VariantConstraint for SRTValue2D
§type DataArg<'a> = SRTValue2D
type DataArg<'a> = SRTValue2D
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = SRTValue2D
type RetArg = SRTValue2D
§fn as_arg(&self) -> <SRTValue2D as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <SRTValue2D as VariantConstraint>::DataArg<'_>
impl Copy for SRTValue2D
impl PropertyTypeConstraint for SRTValue2D
impl StructuralPartialEq for SRTValue2D
Auto Trait Implementations§
impl Freeze for SRTValue2D
impl RefUnwindSafe for SRTValue2D
impl Send for SRTValue2D
impl Sync for SRTValue2D
impl Unpin for SRTValue2D
impl UnwindSafe for SRTValue2D
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