diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-28 09:35:50 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-28 09:36:12 +0300 |
commit | f91fe78af5145a2f5706acd17d0e793ab7b311f8 (patch) | |
tree | 5db34caf2503cfbe9772c87f739dfd2e0cc29df5 /source/gameengine/Ketsji/KX_Camera.cpp | |
parent | 05dbc470ad9c1f953b5e8d2da5e3f1bfba6d4814 (diff) |
cleanup: spelling, comments, alignment
fixed pet peeve “frustrum” and other non-functional changes.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.cpp b/source/gameengine/Ketsji/KX_Camera.cpp index 6988d563808..361cd65d50a 100644 --- a/source/gameengine/Ketsji/KX_Camera.cpp +++ b/source/gameengine/Ketsji/KX_Camera.cpp @@ -320,7 +320,7 @@ void KX_Camera::ExtractFrustumSphere() if (m_projection_matrix[3][3] == MT_Scalar(0.0f)) { - // frustrum projection + // frustum projection // detect which of the corner of the far clipping plane is the farthest to the origin MT_Vector4 nfar; // far point in device normalized coordinate MT_Point3 farpoint; // most extreme far point in camera coordinate @@ -359,7 +359,7 @@ void KX_Camera::ExtractFrustumSphere() nfar.setValue(-nfar[0], -nfar[1], -1.0f, 1.0f); nfar = clip_camcs_matrix*nfar; nearpoint.setValue(nfar[0]/nfar[3], nfar[1]/nfar[3], nfar[2]/nfar[3]); - // this is a frustrum projection + // this is a frustum projection N = nearpoint.dot(nearpoint); e = farpoint[2]; s = nearpoint[2]; |