Changeset 2332 for GTP/trunk/Lib/Vis/Preprocessing/src/Trackball.cpp
- Timestamp:
- 04/23/07 16:19:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Trackball.cpp
r1743 r2332 193 193 * Avoid problems with out-of-control values... 194 194 */ 195 if (t > 1.0 ) t = 1.0;196 if (t < -1.0 ) t = -1.0;197 phi = 2.0 * asin(t);195 if (t > 1.0f) t = 1.0f; 196 if (t < -1.0f) t = -1.0f; 197 phi = 2.0f * asin(t); 198 198 199 199 axis_to_quat(a,phi,q);
Note: See TracChangeset
for help on using the changeset viewer.