diff options
author | Kadah_Coba <kadah.coba@gmail.com> | 2011-06-30 13:48:07 -0700 |
---|---|---|
committer | Kadah_Coba <kadah.coba@gmail.com> | 2011-06-30 13:48:07 -0700 |
commit | e08d1e510a2968753cab330c57e9d8ee25102aaf (patch) | |
tree | 3c40a68a047756df81e87cc84098641e27dcbae4 /indra/llmath/llcalc.cpp | |
parent | c47d42d9459445d9e9869c49ebe66a0671a3a0a7 (diff) |
Additional functions for STORM-1315 Ability to do simple math in numeric edit fields
Support for floor, ceil, modulo.
Fixed ABS.
Added more constants, SQRT_TWO_PI and SQRT3
Diffstat (limited to 'indra/llmath/llcalc.cpp')
-rw-r--r-- | indra/llmath/llcalc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llmath/llcalc.cpp b/indra/llmath/llcalc.cpp index f399463a47..f16dbec63f 100644 --- a/indra/llmath/llcalc.cpp +++ b/indra/llmath/llcalc.cpp @@ -62,7 +62,9 @@ LLCalc::LLCalc() : mLastErrorPos(0) (*mConstants)["PI"] = F_PI; (*mConstants)["TWO_PI"] = F_TWO_PI; (*mConstants)["PI_BY_TWO"] = F_PI_BY_TWO; + (*mConstants)["SQRT_TWO_PI"] = F_SQRT_TWO_PI; (*mConstants)["SQRT2"] = F_SQRT2; + (*mConstants)["SQRT3"] = F_SQRT3; (*mConstants)["DEG_TO_RAD"] = DEG_TO_RAD; (*mConstants)["RAD_TO_DEG"] = RAD_TO_DEG; (*mConstants)["GRAVITY"] = GRAVITY; |