roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
length.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
Include dependency graph for length.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::Length
 Representation of length, internally stored as floating-point meters. More...
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Length roo_quantity::LengthInMeters (float length)
 Returns a length object equivalent to the specified length expressed in meters.
 
Length roo_quantity::UnknownLength ()
 Returns a length object representing an unknown length.
 
Length roo_quantity::LengthInKilometers (float length)
 Returns a length object equivalent to the specified length expressed in kilometers.
 
Length roo_quantity::LengthInDecimeters (float length)
 Returns a length object equivalent to the specified length expressed in decimeters.
 
Length roo_quantity::LengthInCentimeters (float length)
 Returns a length object equivalent to the specified length expressed in centimeters.
 
Length roo_quantity::LengthInMillimeters (float length)
 Returns a length object equivalent to the specified length expressed in millimeters.
 
Length roo_quantity::LengthInMicrometers (float length)
 Returns a length object equivalent to the specified length expressed in micrometers.
 
Length roo_quantity::LengthInNanometers (float length)
 Returns a length object equivalent to the specified length expressed in nanometers.
 
Length roo_quantity::LengthInInches (float length)
 Returns a length object equivalent to the specified length expressed in inches.
 
Length roo_quantity::LengthInFeet (float length)
 Returns a length object equivalent to the specified length expressed in feet.
 
Length roo_quantity::LengthInYards (float length)
 Returns a length object equivalent to the specified length expressed in yards.
 
Length roo_quantity::LengthInLightYears (float length)
 Returns a length object equivalent to the specified length expressed in light years.
 
Length roo_quantity::operator+ (Length a, Length b)
 
Length roo_quantity::operator- (Length a, Length b)
 
Length roo_quantity::operator- (Length a)
 
Length roo_quantity::operator* (Length a, float b)
 
Length roo_quantity::operator* (float a, Length b)
 
Length roo_quantity::operator/ (Length a, float b)
 
float roo_quantity::operator/ (Length a, Length b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Length &val)