Struct measurements::angular_velocity::AngularVelocity[][src]

pub struct AngularVelocity { /* fields omitted */ }

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;

Methods

impl AngularVelocity
[src]

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

Convert this AngularVelocity to a floating point value in degrees

Convert this AngularVelocity to a floating point value in revolutions per second (Hz)

Trait Implementations

impl Copy for AngularVelocity
[src]

impl Clone for AngularVelocity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AngularVelocity
[src]

Formats the value using the given formatter. Read more

impl Measurement for AngularVelocity
[src]

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

Given a list of units and their scale relative to the base unit, select the most appropriate one. Read more

impl Display for AngularVelocity
[src]

Formats the value using the given formatter. Read more

impl Add for AngularVelocity
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub for AngularVelocity
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Div<AngularVelocity> for AngularVelocity
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<f64> for AngularVelocity
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul<f64> for AngularVelocity
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<AngularVelocity> for f64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Eq for AngularVelocity
[src]

impl PartialEq for AngularVelocity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for AngularVelocity
[src]

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Mul<AngularVelocity> for Torque
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Torque> for AngularVelocity
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Div<AngularVelocity> for Power
[src]

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations