summaryrefslogtreecommitdiff
path: root/indra/llmath/llmath.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-04-22 16:01:45 -0400
committerOz Linden <oz@lindenlab.com>2014-04-22 16:01:45 -0400
commit6c8bddca3d5a790934535fdd6f176e28d181d76a (patch)
treeb891799985cc2c7cbd95ff3054631f212889f771 /indra/llmath/llmath.h
parent90d7e9ba8c547ab505270028c13ab4f9283f711b (diff)
parent86270f3ae8f770e72c29487eca5fa99a36f9a2d0 (diff)
merge changes for STORM-1915
Diffstat (limited to 'indra/llmath/llmath.h')
-rwxr-xr-xindra/llmath/llmath.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llmath/llmath.h b/indra/llmath/llmath.h
index 5abd9a0d06..9cf6903197 100755
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file llmath.h
* @brief Useful math constants and macros.
*
@@ -82,6 +82,9 @@ const F32 OO_LN2 = 1.4426950408889634073599246810019f;
const F32 F_ALMOST_ZERO = 0.0001f;
const F32 F_ALMOST_ONE = 1.0f - F_ALMOST_ZERO;
+const F32 GIMBAL_THRESHOLD = 0.000436f; // sets the gimballock threshold 0.025 away from +/-90 degrees
+// formula: GIMBAL_THRESHOLD = sin(DEG_TO_RAD * gimbal_threshold_angle);
+
// BUG: Eliminate in favor of F_APPROXIMATELY_ZERO above?
const F32 FP_MAG_THRESHOLD = 0.0000001f;