diff options
| author | raysan5 <[email protected]> | 2017-07-22 22:15:50 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-07-22 22:15:50 +0200 |
| commit | a766e2c4808a554f5b6cfd07e6c4dceef711c9f8 (patch) | |
| tree | eefa520024b67a2b23ce18462641b4504d4b61c9 /src/core.c | |
| parent | 3655c6e4663d62e93099cdf4871a03a4b0944c6a (diff) | |
| download | raylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.tar.gz raylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.zip | |
Updated Vector math to new naming
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
