Bit of code clean up in LookAt

This commit is contained in:
Eryn Wells 2014-08-03 18:51:41 -07:00
parent 7297bc5c17
commit 0df6244b8b

View file

@ -108,13 +108,9 @@ Camera::LookAt(const Vector3& pt)
mRight = Vector3::Y.cross(mDirection).normalize();
mUp = mDirection.cross(mRight);
mDirection *= directionLength;
if (handedness > 0.0) {
mRight *= rightLength;
} else {
mRight *= -rightLength;
}
mDirection *= directionLength;
mRight *= (handedness > 0.0) ? rightLength : -rightLength;
mUp *= upLength;
}