pub struct Rotation { /* private fields */ }
Expand description
A maliput::api::Rotation
A wrapper around C++ implementation maliput::api::Rotation
.
Implementations§
Source§impl Rotation
impl Rotation
Sourcepub fn from_quat(q: &Quaternion) -> Rotation
pub fn from_quat(q: &Quaternion) -> Rotation
Create a new Rotation
from a Quaternion
.
Sourcepub fn from_rpy(rpy: &RollPitchYaw) -> Rotation
pub fn from_rpy(rpy: &RollPitchYaw) -> Rotation
Create a new Rotation
from a RollPitchYaw
.
Sourcepub fn quat(&self) -> Quaternion
pub fn quat(&self) -> Quaternion
Get a quaternion representation of the Rotation
.
Sourcepub fn rpy(&self) -> RollPitchYaw
pub fn rpy(&self) -> RollPitchYaw
Get a roll-pitch-yaw representation of the Rotation
.
Sourcepub fn set_quat(&mut self, q: &Quaternion)
pub fn set_quat(&mut self, q: &Quaternion)
Set the Rotation
from a Quaternion
.
Sourcepub fn apply(&self, v: &InertialPosition) -> InertialPosition
pub fn apply(&self, v: &InertialPosition) -> InertialPosition
Apply the Rotation
to an InertialPosition
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl !Send for Rotation
impl !Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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