summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-07-22 22:15:50 +0200
committerraysan5 <[email protected]>2017-07-22 22:15:50 +0200
commita766e2c4808a554f5b6cfd07e6c4dceef711c9f8 (patch)
treeeefa520024b67a2b23ce18462641b4504d4b61c9 /src/core.c
parent3655c6e4663d62e93099cdf4871a03a4b0944c6a (diff)
downloadraylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.tar.gz
raylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.zip
Updated Vector math to new naming
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 48c46dfd..4a95c660 100644
--- a/src/core.c
+++ b/src/core.c
@@ -990,8 +990,8 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
Vector3 farPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
// Calculate normalized direction vector
- Vector3 direction = VectorSubtract(farPoint, nearPoint);
- VectorNormalize(&direction);
+ Vector3 direction = Vector3Subtract(farPoint, nearPoint);
+ Vector3Normalize(&direction);
// Apply calculated vectors to ray
ray.position = camera.position;