summaryrefslogtreecommitdiff
path: root/indra/llmath/llmath.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-09-11 11:27:56 -0400
committerOz Linden <oz@lindenlab.com>2013-09-11 11:27:56 -0400
commit493a34aa15d4ebab4282c3011af89ef3ff3ab0d7 (patch)
treeec30dfc181f9d44ea66c6396c1f77185e5000425 /indra/llmath/llmath.h
parent55ae6a7962cdc9a9d7d087fbc529d30db9c37013 (diff)
parent681305e9bf725872af906acb707627b26b3c8e67 (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 b93f89d674..95e6f68895 100755
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file llmath.h
* @brief Useful math constants and macros.
*
@@ -81,6 +81,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;