Struct measurements::angular_velocity::AngularVelocity
source · [−]pub struct AngularVelocity { /* private fields */ }
Expand description
The ‘AngularVelocity’ struct can be used to deal with angular velocities in a common way.
Example
use measurements::AngularVelocity;
const cylinders: f64 = 6.0;
let engine_speed = AngularVelocity::from_rpm(9000.0);
let sparks_per_second = (engine_speed.as_hertz() / 2.0) * cylinders;
Implementations
Create a new AngularVelocity from a floating point value in radians per second
Create a new AngularVelocity from a floating point value in revolutions per minute (RPM)
Create a new AngularVelocity from a floating point value in revolutions per second (Hz)
Convert this AngularVelocity to a floating point value in radians per second
Trait Implementations
Get this quantity in the base units
Create a new quantity from the base units
Return the base unit for this type, as a string. For example “kilograms” Read more
Returns a string containing the most appropriate units for this quantity, and a floating point value representing this quantity in those units. Useful when, for example, a length might be in millimeters if it is very small, or kilometers when it is very large. Read more
type Output = AngularVelocity
type Output = AngularVelocity
The resulting type after applying the *
operator.
Performs the *
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for AngularVelocity
impl Send for AngularVelocity
impl Sync for AngularVelocity
impl Unpin for AngularVelocity
impl UnwindSafe for AngularVelocity
Blanket Implementations
Mutably borrows from an owned value. Read more