aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/include/G3D/units.h
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-08-22 16:58:23 +0200
committerjackpoz <giacomopoz@gmail.com>2014-08-22 21:00:56 +0200
commit5e8277e923c5545a15bae7c740ab6afaa597a59f (patch)
tree4cf5212c080588a7e868ee60134fc7fff51e400a /dep/g3dlite/include/G3D/units.h
parenta63aa858dcb400eafb97eed1f590e34c27d934a4 (diff)
Core/Dependencies: Update G3D to v9.0 r4036
Diffstat (limited to 'dep/g3dlite/include/G3D/units.h')
-rw-r--r--dep/g3dlite/include/G3D/units.h40
1 files changed, 35 insertions, 5 deletions
diff --git a/dep/g3dlite/include/G3D/units.h b/dep/g3dlite/include/G3D/units.h
index 2e30304dc62..694576f3d25 100644
--- a/dep/g3dlite/include/G3D/units.h
+++ b/dep/g3dlite/include/G3D/units.h
@@ -1,10 +1,10 @@
/**
- @file units.h
+ \file G3D/units.h
- @maintainer Morgan McGuire, http://graphics.cs.williams.edu
+ \maintainer Morgan McGuire, http://graphics.cs.williams.edu
- @created 2009-08-21
- @edited 2009-08-21
+ \created 2009-08-21
+ \edited 2011-07-08
*/
#ifndef G3D_units_h
#define G3D_units_h
@@ -46,7 +46,7 @@ inline float meters() {
/** 1000 m */
inline float kilometers() {
- return 100.0f;
+ return 1000.0f;
}
/** 0.0254 m */
@@ -120,7 +120,37 @@ inline float years() {
///////////////////////////////////////////
+/** SI unit of mass */
+inline float kilograms() {
+ return 1.0f;
+}
+
+///////////////////////////////////////////
+
+/** 1 kg m / s^2 */
+inline float newtons() {
+ return 1.0f;
+}
+
+///////////////////////////////////////////
+
+/** SI unit of power: W = J/s*/
+inline float watts() {
+ return 1.0;
}
+
+/** SI unit of energy: J = N*m */
+inline float joules() {
+ return 1.0;
}
+/** Unit of solid angle measure. A sphere subtends 4 * pi sr. */
+inline float steradians() {
+ return 1.0;
+}
+
+
+} // units
+} // G3D
+
#endif