aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2017-03-09 18:52:56 +0100
committerraysan5 <raysan5@gmail.com>2017-03-09 18:52:56 +0100
commit7154b42f4885cea9cc2b7ef8f917fd063ee9fc47 (patch)
tree4d67d8c14e58c2f08991686ad81c1abfb69be31e
parent7c888edba18c78e38829a752626b67c41e0c224a (diff)
downloadraylib-7154b42f4885cea9cc2b7ef8f917fd063ee9fc47.tar.gz
raylib-7154b42f4885cea9cc2b7ef8f917fd063ee9fc47.zip
Corrected naming issue
-rw-r--r--src/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core.c b/src/core.c
index 773bc15d..c0f5be83 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1129,16 +1129,16 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
MatrixInvert(&matProjView);
// Calculate far and near points
- Quaternion nearPoint = { deviceCoords.x, deviceCoords.y, 0.0f, 1.0f };
- Quaternion farPoint = { deviceCoords.x, deviceCoords.y, 1.0f, 1.0f };
+ Quaternion qNear = { deviceCoords.x, deviceCoords.y, 0.0f, 1.0f };
+ Quaternion qFar = { deviceCoords.x, deviceCoords.y, 1.0f, 1.0f };
// Multiply points by unproject matrix
- QuaternionTransform(&nearPoint, matProjView);
- QuaternionTransform(&farPoint, matProjView);
+ QuaternionTransform(&qNear, matProjView);
+ QuaternionTransform(&qFar, matProjView);
// Calculate normalized world points in vectors
- Vector3 nearPoint = { nearPoint.x/nearPoint.w, nearPoint.y/nearPoint.w, nearPoint.z/nearPoint.w};
- Vector3 farPoint = { farPoint.x/farPoint.w, farPoint.y/farPoint.w, farPoint.z/farPoint.w};
+ Vector3 nearPoint = { qNear.x/qNear.w, qNear.y/qNear.w, qNear.z/qNear.w};
+ Vector3 farPoint = { qFar.x/qFar.w, qFar.y/qFar.w, qFar.z/qFar.w};
#endif
// Calculate normalized direction vector