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

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Force roo_quantity::ForceInNewtons (float force)
 Returns a force object equivalent to the specified force expressed in Newtons.
 
Force roo_quantity::UnknownForce ()
 Returns a force object representing an unknown force.
 
Force roo_quantity::ForceInGigaNewtons (float force)
 Returns a force object equivalent to the specified force expressed in gigaNewtons.
 
Force roo_quantity::ForceInMegaNewtons (float force)
 Returns a force object equivalent to the specified force expressed in megaNewtons.
 
Force roo_quantity::ForceInKiloNewtons (float force)
 Returns a force object equivalent to the specified force expressed in kiloNewtons.
 
Force roo_quantity::ForceInMilliNewtons (float force)
 Returns a force object equivalent to the specified force expressed in milliNewtons.
 
Force roo_quantity::ForceInMicroNewtons (float force)
 Returns a force object equivalent to the specified force expressed in microNewtons.
 
Force roo_quantity::operator+ (Force a, Force b)
 
Force roo_quantity::operator- (Force a, Force b)
 
Force roo_quantity::operator- (Force a)
 
Force roo_quantity::operator* (Force a, float b)
 
Force roo_quantity::operator* (float a, Force b)
 
Work roo_quantity::operator* (Force a, Length b)
 
Work roo_quantity::operator* (Length a, Force b)
 
Force roo_quantity::operator/ (Force a, float b)
 
Force roo_quantity::operator/ (Work a, Length b)
 
Length roo_quantity::operator/ (Work a, Force b)
 
Force roo_quantity::operator* (Work a, LineicNumber b)
 
float roo_quantity::operator/ (Force a, Force b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Force &val)