Support Forum       G3D Web Page     
Functions
G3D::units Namespace Reference

Use using namespace G3D::units; to include all units into your program. More...

Functions

float centimeters ()
 0.01 m More...
 
float days ()
 86400 s More...
 
float degrees ()
 pi/180 More...
 
float feet ()
 0.3048 m More...
 
float hours ()
 3600 s More...
 
float inches ()
 0.0254 m More...
 
float joules ()
 SI unit of energy: J = N*m. More...
 
float kilograms ()
 SI unit of mass. More...
 
float kilometers ()
 1000 m More...
 
float meters ()
 SI base unit of distance measure. More...
 
float micrometers ()
 1e-6 m More...
 
float miles ()
 1609.344 m More...
 
float millimeters ()
 0.001 m More...
 
float milliseconds ()
 1e-3 s More...
 
float minutes ()
 60 s More...
 
float nanometers ()
 1e-9 m More...
 
float nanoseconds ()
 1e-9 s More...
 
float newtons ()
 1 kg m / s^2 More...
 
float radians ()
 SI base unit of angular measure. More...
 
float seconds ()
 Base unit of time. More...
 
float steradians ()
 Unit of solid angle measure. More...
 
float watts ()
 SI unit of power: W = J/s. More...
 
float yards ()
 0.9144 m More...
 
float years ()
 31556926 s More...
 

Detailed Description

Use using namespace G3D::units; to include all units into your program.

The units system is specifically designed not to be general but to support commonly used units efficiently and clearly. See http://en.wikipedia.org/wiki/SI_prefix for interesting facts about SI/metric units and full definitions.

Function Documentation

◆ centimeters()

float G3D::units::centimeters ( )
inline

0.01 m

◆ days()

float G3D::units::days ( )
inline

86400 s

◆ degrees()

float G3D::units::degrees ( )
inline

pi/180

◆ feet()

float G3D::units::feet ( )
inline

0.3048 m

◆ hours()

float G3D::units::hours ( )
inline

3600 s

◆ inches()

float G3D::units::inches ( )
inline

0.0254 m

◆ joules()

float G3D::units::joules ( )
inline

SI unit of energy: J = N*m.

◆ kilograms()

float G3D::units::kilograms ( )
inline

SI unit of mass.

◆ kilometers()

float G3D::units::kilometers ( )
inline

1000 m

◆ meters()

float G3D::units::meters ( )
inline

SI base unit of distance measure.

◆ micrometers()

float G3D::units::micrometers ( )
inline

1e-6 m

◆ miles()

float G3D::units::miles ( )
inline

1609.344 m

◆ millimeters()

float G3D::units::millimeters ( )
inline

0.001 m

◆ milliseconds()

float G3D::units::milliseconds ( )
inline

1e-3 s

◆ minutes()

float G3D::units::minutes ( )
inline

60 s

◆ nanometers()

float G3D::units::nanometers ( )
inline

1e-9 m

◆ nanoseconds()

float G3D::units::nanoseconds ( )
inline

1e-9 s

◆ newtons()

float G3D::units::newtons ( )
inline

1 kg m / s^2

◆ radians()

float G3D::units::radians ( )
inline

SI base unit of angular measure.

◆ seconds()

float G3D::units::seconds ( )
inline

Base unit of time.

◆ steradians()

float G3D::units::steradians ( )
inline

Unit of solid angle measure.

A sphere subtends 4 * pi sr.

◆ watts()

float G3D::units::watts ( )
inline

SI unit of power: W = J/s.

◆ yards()

float G3D::units::yards ( )
inline

0.9144 m

◆ years()

float G3D::units::years ( )
inline

31556926 s


documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15