|
roo_quantity
API Documentation for roo_quantity
|
Representation of velocity, internally stored as floating-point meters per second. More...
#include <velocity.h>
Public Member Functions | |
| Velocity () | |
| Creates a velocity object representing an 'unknown' velocity. | |
| float | inKilometersPerSecond () const |
| Returns the velocity in kilometers per second. | |
| float | inKilometersPerHour () const |
| Returns the velocity in kilometers per hour. | |
| float | inKph () const |
| Returns the velocity in kilometers per hour. | |
| float | inMetersPerSecond () const |
| Returns the velocity in meters per second. | |
| float | inMillimetersPerSecond () const |
| Returns the velocity in millimeters per second. | |
| float | inMicrometersPerSecond () const |
| Returns the velocity in micrometers per second. | |
| float | inMilesPerHour () const |
| Returns the velocity in miles per hour. | |
| float | inMph () const |
| Returns the velocity in miles per hour. | |
| float | inKnots () const |
| bool | isUnknown () const |
| Returns whether the object represents an unknown velocity. | |
| bool | operator< (const Velocity &other) const |
| bool | operator== (const Velocity &other) const |
| bool | operator> (const Velocity &other) const |
| bool | operator<= (const Velocity &other) const |
| bool | operator>= (const Velocity &other) const |
| bool | operator!= (const Velocity &other) const |
| Velocity & | operator+= (const Velocity &other) |
| Velocity & | operator-= (const Velocity &other) |
| Velocity & | operator*= (float multi) |
| Velocity & | operator/= (float div) |
Friends | |
| Velocity | UnknownVelocity () |
| Returns a velocity object representing an unknown velocity. | |
| Velocity | VelocityInMetersPerSecond (float) |
| Returns a velocity object equivalent to the specified velocity expressed in meters per second. | |
Representation of velocity, internally stored as floating-point meters per second.
Definition at line 22 of file velocity.h.
|
inline |
Creates a velocity object representing an 'unknown' velocity.
Definition at line 25 of file velocity.h.
|
inline |
Returns the velocity in kilometers per hour.
Definition at line 31 of file velocity.h.
Referenced by inKph().
|
inline |
Returns the velocity in kilometers per second.
Definition at line 28 of file velocity.h.
|
inline |
Definition at line 51 of file velocity.h.
|
inline |
Returns the velocity in kilometers per hour.
Definition at line 34 of file velocity.h.
References inKilometersPerHour().
|
inline |
Returns the velocity in meters per second.
Definition at line 37 of file velocity.h.
Referenced by roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator+(), operator+=(), roo_quantity::operator-(), roo_quantity::operator-(), operator-=(), roo_quantity::operator/(), roo_quantity::operator/(), and roo_quantity::operator/().
|
inline |
Returns the velocity in micrometers per second.
Definition at line 43 of file velocity.h.
|
inline |
Returns the velocity in miles per hour.
Definition at line 46 of file velocity.h.
Referenced by inMph().
|
inline |
Returns the velocity in millimeters per second.
Definition at line 40 of file velocity.h.
|
inline |
Returns the velocity in miles per hour.
Definition at line 49 of file velocity.h.
References inMilesPerHour().
|
inline |
Returns whether the object represents an unknown velocity.
Definition at line 54 of file velocity.h.
|
inline |
Definition at line 76 of file velocity.h.
|
inline |
Definition at line 90 of file velocity.h.
Definition at line 80 of file velocity.h.
References inMetersPerSecond().
Definition at line 85 of file velocity.h.
References inMetersPerSecond().
|
inline |
Definition at line 95 of file velocity.h.
|
inline |
Definition at line 56 of file velocity.h.
|
inline |
Definition at line 68 of file velocity.h.
|
inline |
Definition at line 60 of file velocity.h.
|
inline |
Definition at line 64 of file velocity.h.
|
inline |
Definition at line 72 of file velocity.h.
|
friend |
Returns a velocity object representing an unknown velocity.
Definition at line 123 of file velocity.h.
|
friend |
Returns a velocity object equivalent to the specified velocity expressed in meters per second.
Definition at line 133 of file velocity.h.