[−][src]Struct box2d_rs::b2_math::B2Rot
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,