summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorRay <[email protected]>2023-05-01 14:04:22 +0200
committerRay <[email protected]>2023-05-01 14:04:22 +0200
commit7d68aa686974347cefe0ef481c835e3d60bdc4b9 (patch)
tree2542aba007b5d41956932ce47c1cb56e5a34ce42 /src/raymath.h
parenta4a5a798bdb546646b607b3348a8f2d43b161a09 (diff)
downloadraylib-7d68aa686974347cefe0ef481c835e3d60bdc4b9.tar.gz
raylib-7d68aa686974347cefe0ef481c835e3d60bdc4b9.zip
REVIEWED: Modules description layout
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 54eaa815..ddc3f58a 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -2,19 +2,7 @@
*
* raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions
*
-* CONFIGURATION:
-*
-* #define RAYMATH_IMPLEMENTATION
-* Generates the implementation of the library into the included file.
-* If not defined, the library is in header only mode and can be included in other headers
-* or source files without problems. But only ONE file should hold the implementation.
-*
-* #define RAYMATH_STATIC_INLINE
-* Define static inline functions code, so #include header suffices for use.
-* This may use up lots of memory.
-*
* CONVENTIONS:
-*
* - Functions are always self-contained, no function use another raymath function inside,
* required code is directly re-implemented inside
* - Functions input parameters are always received by value (2 unavoidable exceptions)
@@ -22,6 +10,16 @@
* - Functions are always defined inline
* - Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
*
+* CONFIGURATION:
+* #define RAYMATH_IMPLEMENTATION
+* Generates the implementation of the library into the included file.
+* If not defined, the library is in header only mode and can be included in other headers
+* or source files without problems. But only ONE file should hold the implementation.
+*
+* #define RAYMATH_STATIC_INLINE
+* Define static inline functions code, so #include header suffices for use.
+* This may use up lots of memory.
+*
*
* LICENSE: zlib/libpng
*
@@ -703,7 +701,7 @@ RMAPI Vector3 Vector3Normalize(Vector3 v)
Vector3 result = v;
float length = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z);
- if (length != 0.0f)
+ if (length != 0.0f)
{
float ilength = 1.0f/length;