#include <mathlib.h>
Static Public Member Functions | |
| static T | clamp (T t) |
| static T | frand () |
| static T | lerp (T t, T a, T b) |
| static T | sfrand () |
| static void | sincos (T, T &, T &) |
Private Member Functions | |
| Math () | |
|
|||||||||
|
Definition at line 29 of file mathlib.h. 00029 {};
|
|
||||||||||
|
Definition at line 131 of file mathlib.h. Referenced by Renderer::render(). 00132 {
00133 if (t < 0)
00134 return 0;
00135 else if (t > 1)
00136 return 1;
00137 else
00138 return t;
00139 }
|
|
|||||||||
|
Definition at line 111 of file mathlib.h. 00112 {
00113 return (T) (rand() & 0x7fff) / (T) 32767;
00114 }
|
|
||||||||||||||||||||
|
Definition at line 124 of file mathlib.h. Referenced by noise1(), noise2(), noise3(), renderAtmosphere(), Renderer::renderEllipsoidAtmosphere(), and slerp(). 00125 {
00126 return a + t * (b - a);
00127 }
|
|
|||||||||
|
Definition at line 118 of file mathlib.h. Referenced by init(). 00119 {
00120 return (T) (rand() & 0x7fff) / (T) 32767 * 2 - 1;
00121 }
|
|
||||||||||||||||||||
|
Definition at line 103 of file mathlib.h. Referenced by Quaternion< T >::setAxisAngle(), Quaternion< T >::xrotate(), Quaternion< T >::xrotation(), Quaternion< T >::yrotate(), Quaternion< T >::yrotation(), Quaternion< T >::zrotate(), and Quaternion< T >::zrotation().
|
1.4.1