roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
mass.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
Include dependency graph for mass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_quantity::Mass
 Representation of mass, internally stored as floating-point kilograms. More...
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Mass roo_quantity::MassInGrams (float mass)
 Returns a mass object equivalent to the specified mass expressed in grams.
 
Mass roo_quantity::UnknownMass ()
 Returns a mass object representing an unknown mass.
 
Mass roo_quantity::MassInKilograms (float mass)
 Returns a mass object equivalent to the specified mass expressed in kilograms.
 
Mass roo_quantity::MassInKg (float mass)
 Returns a mass object equivalent to the specified mass expressed in kilograms.
 
Mass roo_quantity::MassInTons (float mass)
 Returns a mass object equivalent to the specified mass expressed in metric tons.
 
Mass roo_quantity::MassInMilligrams (float mass)
 Returns a mass object equivalent to the specified mass expressed in milligrams.
 
Mass roo_quantity::MassInMicrograms (float mass)
 Returns a mass object equivalent to the specified mass expressed in micrograms.
 
Mass roo_quantity::MassInPounds (float mass)
 Returns a mass object equivalent to the specified mass expressed in pounds.
 
Mass roo_quantity::MassInLbs (float mass)
 
Mass roo_quantity::operator+ (Mass a, Mass b)
 
Mass roo_quantity::operator- (Mass a, Mass b)
 
Mass roo_quantity::operator- (Mass a)
 
Mass roo_quantity::operator* (Mass a, float b)
 
Mass roo_quantity::operator* (float a, Mass b)
 
Mass roo_quantity::operator/ (Mass a, float b)
 
float roo_quantity::operator/ (Mass a, Mass b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Mass &val)