Lazar Trsic b561f39d01 Limit dotProduct value to 1.0f, so acosf would not return NaN.
Due to precision loss of float math, we sometimes get 1.000001f for
dotProduct. This causes NaN result from acosf() and floor() funcs.

At the moment, this does not cause any problems on ARM, as casting
NaN to int results in 0. On mips however (possibly on x86), such cast
gives INT_MAX, so crash occurs when trying to use the resulting value.

Change-Id: I8e0285a0306a65b8469d9f4885c19665066fc4c8
2015-06-25 11:11:55 +02:00
..
2014-12-12 09:49:29 -08:00
2015-05-06 19:51:33 +00:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2015-06-09 17:51:35 +05:30
2014-12-12 09:49:29 -08:00
2014-11-07 10:31:53 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-11-07 10:31:53 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00
2014-12-12 09:49:29 -08:00