pub struct EulerAngles {
pub roll: f64,
pub pitch: f64,
pub yaw: f64,
}Expand description
欧拉角(用于表示3D旋转姿态)
使用 Intrinsic RPY (Roll-Pitch-Yaw) 顺序,即:
- 先绕 X 轴旋转(Roll)
- 再绕 Y 轴旋转(Pitch)
- 最后绕 Z 轴旋转(Yaw)
协议映射:
- Roll (RX): 对应协议 0x153 的 RX 角度
- Pitch (RY): 对应协议 0x154 的 RY 角度
- Yaw (RZ): 对应协议 0x154 的 RZ 角度
单位:度(degree)
Fields§
§roll: f64Roll:绕 X 轴旋转(度)
pitch: f64Pitch:绕 Y 轴旋转(度)
yaw: f64Yaw:绕 Z 轴旋转(度)
Implementations§
Trait Implementations§
Source§impl Clone for EulerAngles
impl Clone for EulerAngles
Source§fn clone(&self) -> EulerAngles
fn clone(&self) -> EulerAngles
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EulerAngles
impl Debug for EulerAngles
Source§impl Default for EulerAngles
impl Default for EulerAngles
Source§fn default() -> EulerAngles
fn default() -> EulerAngles
Returns the “default value” for a type. Read more
Source§impl Display for EulerAngles
impl Display for EulerAngles
Source§impl PartialEq for EulerAngles
impl PartialEq for EulerAngles
impl Copy for EulerAngles
impl StructuralPartialEq for EulerAngles
Auto Trait Implementations§
impl Freeze for EulerAngles
impl RefUnwindSafe for EulerAngles
impl Send for EulerAngles
impl Sync for EulerAngles
impl Unpin for EulerAngles
impl UnwindSafe for EulerAngles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more