diff options
Diffstat (limited to 'intern/iksolver')
-rw-r--r-- | intern/iksolver/test/ik_glut_test/intern/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/iksolver/test/ik_glut_test/intern/main.cpp b/intern/iksolver/test/ik_glut_test/intern/main.cpp index b8094e6cd4f..7f1cce80a7e 100644 --- a/intern/iksolver/test/ik_glut_test/intern/main.cpp +++ b/intern/iksolver/test/ik_glut_test/intern/main.cpp @@ -107,9 +107,9 @@ init(MT_Vector3 min,MT_Vector3 max) /* Setup the view of the cube. */ glMatrixMode(GL_PROJECTION); - // centre of the box + 3* depth of box + // center of the box + 3* depth of box - MT_Vector3 centre = (min + max) * 0.5; + MT_Vector3 center = (min + max) * 0.5; MT_Vector3 diag = max - min; float depth = diag.length(); @@ -125,8 +125,8 @@ init(MT_Vector3 min,MT_Vector3 max) gluLookAt( - centre.x(), centre.y(), centre.z() + distance*depth, /* eye is at (0,0,5) */ - centre.x(), centre.y(), centre.z(), /* center is at (0,0,0) */ + center.x(), center.y(), center.z() + distance*depth, /* eye is at (0,0,5) */ + center.x(), center.y(), center.z(), /* center is at (0,0,0) */ 0.0, 1.0, 0.); /* up is in positive Y direction */ glPushMatrix(); |