|
roo_quantity
API Documentation for roo_quantity
|
Representation of force, internally stored as floating-point Newtons. More...
#include <force.h>
Public Member Functions | |
| Force () | |
| Creates a force object representing an 'unknown' force. | |
| float | inKiloNewtons () const |
| Returns the force in kiloNewtons. | |
| float | inNewtons () const |
| Returns the force in Newtons. | |
| float | inMilliNewtons () const |
| Returns the force in milliNewtons. | |
| float | inMicroNewtons () const |
| Returns the force in microNewtons. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown force. | |
| bool | operator< (const Force &other) const |
| bool | operator== (const Force &other) const |
| bool | operator> (const Force &other) const |
| bool | operator<= (const Force &other) const |
| bool | operator>= (const Force &other) const |
| bool | operator!= (const Force &other) const |
| Force & | operator+= (const Force &other) |
| Force & | operator-= (const Force &other) |
| Force & | operator*= (float multi) |
| Force & | operator/= (float div) |
Friends | |
| Force | UnknownForce () |
| Returns a force object representing an unknown force. | |
| Force | ForceInNewtons (float) |
| Returns a force object equivalent to the specified force expressed in Newtons. | |
Representation of force, internally stored as floating-point Newtons.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the force in Newtons.
Definition at line 31 of file force.h.
Referenced by 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/(), and roo_quantity::operator/().
|
inline |
|
inline |
|
inline |
Definition at line 56 of file force.h.
References inNewtons().
Definition at line 61 of file force.h.
References inNewtons().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |