Struct emath::Rot2 [−][src]
pub struct Rot2 { /* fields omitted */ }
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
impl Rot2
[src]
impl Rot2
[src]pub fn identity() -> Self
[src]
π Deprecated:
Use Rot2::IDENTITY
pub fn from_angle(angle: f32) -> Self
[src]
pub fn from_angle(angle: f32) -> Self
[src]A π/4 = 90Β° rotation means rotating the X axis to the Y axis.
pub fn angle(self) -> f32
[src]
pub fn length_squared(self) -> f32
[src]
pub fn is_finite(self) -> bool
[src]
#[must_use]pub fn inverse(self) -> Rot2
[src]
#[must_use]
pub fn inverse(self) -> Rot2#[must_use]pub fn normalized(self) -> Self
[src]
#[must_use]
pub fn normalized(self) -> SelfTrait Implementations
impl Copy for Rot2
[src]
impl StructuralPartialEq for Rot2
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rot2
impl Send for Rot2
impl Sync for Rot2
impl Unpin for Rot2
impl UnwindSafe for Rot2
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]π¬ This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more