|
roo_quantity
API Documentation for roo_quantity
|
Representation of length, internally stored as floating-point meters. More...
#include <length.h>
Public Member Functions | |
| Length () | |
| Creates a length object representing an 'unknown' length. | |
| float | inKilometers () const |
| Returns the length in kilometers. | |
| float | inMeters () const |
| Returns the length in meters. | |
| float | inDecimeters () const |
| Returns the length in decimeters. | |
| float | inCentimeters () const |
| Returns the length in centimeters. | |
| float | inMillimeters () const |
| Returns the length in millimeters. | |
| float | inMicrometers () const |
| Returns the length in micrometers. | |
| float | inNanometers () const |
| Returns the length in nanometers. | |
| float | inInches () const |
| Returns the length in inches. | |
| float | inFeet () const |
| Returns the length in feet. | |
| float | inYards () const |
| Returns the length in yards. | |
| float | inLightYears () const |
| Returns the length in light years. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown length. | |
| bool | operator< (const Length &other) const |
| bool | operator== (const Length &other) const |
| bool | operator> (const Length &other) const |
| bool | operator<= (const Length &other) const |
| bool | operator>= (const Length &other) const |
| bool | operator!= (const Length &other) const |
| Length & | operator+= (const Length &other) |
| Length & | operator-= (const Length &other) |
| Length & | operator*= (float multi) |
| Length & | operator/= (float div) |
Friends | |
| Length | UnknownLength () |
| Returns a length object representing an unknown length. | |
| Length | LengthInMeters (float) |
| Returns a length object equivalent to the specified length expressed in meters. | |
Representation of length, internally stored as floating-point meters.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the length in meters.
Definition at line 28 of file length.h.
Referenced by roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), 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/(), roo_quantity::operator/(), roo_quantity::operator/(), roo_quantity::operator/(), roo_quantity::operator/(), roo_quantity::operator/(), and roo_quantity::operator/().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 80 of file length.h.
References inMeters().
Definition at line 85 of file length.h.
References inMeters().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |