pub struct AngularVelocity {
pub rate_about_x_axis: f32,
pub rate_about_y_axis: f32,
pub rate_about_z_axis: f32,
}
Expand description
Implemented according to IEEE 1278.1-2012 §6.2.7 For all fields, assume right-hand rule for directionality
Fields§
§rate_about_x_axis: f32
The angular velocity in radians/second about the entity’s X-axis
rate_about_y_axis: f32
The angular velocity in radians/second about the entity’s Y-axis
rate_about_z_axis: f32
The angular velocity in radians/second about the entity’s Z-axis
Implementations§
Source§impl AngularVelocity
impl AngularVelocity
Sourcepub fn new(x: f32, y: f32, z: f32) -> Self
pub fn new(x: f32, y: f32, z: f32) -> Self
Create a new AngularVelocity
struct with existing values
Sourcepub fn serialize(&self, buf: &mut BytesMut)
pub fn serialize(&self, buf: &mut BytesMut)
Serialize an instance of an AngularVelocity
into a mutable byte stream
Sourcepub fn decode(buf: &mut BytesMut) -> AngularVelocity
pub fn decode(buf: &mut BytesMut) -> AngularVelocity
Decode an AngularVelocity
from a mutable byte stream
Trait Implementations§
Source§impl Clone for AngularVelocity
impl Clone for AngularVelocity
Source§fn clone(&self) -> AngularVelocity
fn clone(&self) -> AngularVelocity
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 AngularVelocity
impl Debug for AngularVelocity
Source§impl Default for AngularVelocity
impl Default for AngularVelocity
Source§fn default() -> AngularVelocity
fn default() -> AngularVelocity
Returns the “default value” for a type. Read more
impl Copy for AngularVelocity
Auto Trait Implementations§
impl Freeze for AngularVelocity
impl RefUnwindSafe for AngularVelocity
impl Send for AngularVelocity
impl Sync for AngularVelocity
impl Unpin for AngularVelocity
impl UnwindSafe for AngularVelocity
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