diff options
| author | raysan5 <raysan5@gmail.com> | 2016-09-12 19:36:41 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-09-12 19:36:41 +0200 |
| commit | 7f0880a73580c14312e18966d8aae568b7a3f7cb (patch) | |
| tree | bbf30cb5c10da9b0e847d5226e5d34a18a0e1bff /src/core.c | |
| parent | 173f1993132485ab8fe16b170ad7bf7e32f47ac7 (diff) | |
| download | raylib-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() }; |
