aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-09-12 19:36:41 +0200
committerraysan5 <raysan5@gmail.com>2016-09-12 19:36:41 +0200
commit7f0880a73580c14312e18966d8aae568b7a3f7cb (patch)
treebbf30cb5c10da9b0e847d5226e5d34a18a0e1bff /src/core.c
parent173f1993132485ab8fe16b170ad7bf7e32f47ac7 (diff)
downloadraylib-7f0880a73580c14312e18966d8aae568b7a3f7cb.tar.gz
raylib-7f0880a73580c14312e18966d8aae568b7a3f7cb.zip
Review spacing formatting
raylib uses spaces between '+' and '-' signs but not between '*' and '/' signs, it's a chosen convention
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index b9ffe87b..d5b07e7a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1016,7 +1016,7 @@ Vector2 GetWorldToScreen(Vector3 position, Camera camera)
QuaternionTransform(&worldPos, matProj);
// Calculate normalized device coordinates (inverted y)
- Vector3 ndcPos = { worldPos.x / worldPos.w, -worldPos.y / worldPos.w, worldPos.z / worldPos.z };
+ Vector3 ndcPos = { worldPos.x/worldPos.w, -worldPos.y/worldPos.w, worldPos.z/worldPos.z };
// Calculate 2d screen position vector
Vector2 screenPosition = { (ndcPos.x + 1.0f)/2.0f*(float)GetScreenWidth(), (ndcPos.y + 1.0f)/2.0f*(float)GetScreenHeight() };