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

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Velocity roo_quantity::VelocityInMetersPerSecond (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in meters per second.
 
Velocity roo_quantity::UnknownVelocity ()
 Returns a velocity object representing an unknown velocity.
 
Velocity roo_quantity::VelocityInKilometersPerSecond (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in kilometers per second.
 
Velocity roo_quantity::VelocityInMillimetersPerSecond (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in millimeters per second.
 
Velocity roo_quantity::VelocityInMicrometersPerSecond (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in micrometers per second.
 
Velocity roo_quantity::VelocityInKilometersPerHour (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in kilometers per hour.
 
Velocity roo_quantity::VelocityInKph (float velocity)
 
Velocity roo_quantity::VelocityInMilesPerHour (float velocity)
 Returns a velocity object equivalent to the specified velocity expressed in miles per hour.
 
Velocity roo_quantity::VelocityInMph (float velocity)
 
Velocity roo_quantity::operator+ (Velocity a, Velocity b)
 
Velocity roo_quantity::operator- (Velocity a, Velocity b)
 
Velocity roo_quantity::operator- (Velocity a)
 
Velocity roo_quantity::operator* (Velocity a, float b)
 
Velocity roo_quantity::operator* (float a, Velocity b)
 
Velocity roo_quantity::operator/ (Velocity a, float b)
 
float roo_quantity::operator/ (Velocity a, Velocity b)
 
Length roo_quantity::operator* (Velocity a, Time b)
 Vs time.
 
Length roo_quantity::operator* (Time a, Velocity b)
 
Velocity roo_quantity::operator/ (Length a, Time b)
 
Time roo_quantity::operator/ (Length a, Velocity b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Velocity &val)