| 59 | } |
| 60 | |
| 61 | void slerpBasicApp::drawPathBetweenVectors( vec3 a, vec3 b ) |
| 62 | { |
| 63 | // draws a path composed of 100 line segments |
| 64 | gl::begin( GL_LINE_STRIP ); |
| 65 | for( float t = 0; t <= 1.0f; t += 0.01f ) |
| 66 | gl::vertex( slerp( a, b, t ) ); |
| 67 | gl::end(); |
| 68 | } |
| 69 | |
| 70 | void slerpBasicApp::draw() |
| 71 | { |