[][src]Struct box2d_rs::b2_math::B2Rot

pub struct B2Rot { /* fields omitted */ }

Rotation

Implementations

impl B2Rot[src]

pub fn new(angle: f32) -> B2Rot[src]

initialize from an angle in radians

pub fn set(&mut self, angle: f32)[src]

Set using an angle in radians.

pub fn set_identity(&mut self)[src]

Set to the identity rotation

pub fn get_angle(self) -> f32[src]

Get the angle in radians

pub fn get_xaxis(self) -> B2vec2[src]

Get the x-axis

pub fn get_yaxis(self) -> B2vec2[src]

Get the u-axis

Trait Implementations

impl Clone for B2Rot[src]

impl Copy for B2Rot[src]

impl Debug for B2Rot[src]

impl Default for B2Rot[src]

Auto Trait Implementations

impl RefUnwindSafe for B2Rot

impl Send for B2Rot

impl Sync for B2Rot

impl Unpin for B2Rot

impl UnwindSafe for B2Rot

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.