Struct emath::Rot2 [−][src]
#[repr(C)]pub struct Rot2 { /* fields omitted */ }
Expand description
Represents a rotation in the 2D plane.
A rotation of 𝞃/4 = 90° rotates the X axis to the Y axis.
Normally a Rot2
is normalized (unit-length).
If not, it will also scale vectors.
Implementations
Angle is clockwise in radians. A 𝞃/4 = 90° rotation means rotating the X axis to the Y axis.
Trait Implementations
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
Scales the rotor.
Scales the rotor.
Rotates (and maybe scales) the vector.
Scales the rotor.
Auto Trait Implementations
impl RefUnwindSafe for Rot2
impl UnwindSafe for Rot2
Blanket Implementations
Mutably borrows from an owned value. Read more