summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
AgeCommit message (Collapse)Author
2020-01-23Remove duplicate functionRay
2020-01-23WARNING: Renamed Vector3Multiply() to Vector3Scale()Ray
Renamed for consistency with Vecto2Scale() Also renamed Vector3MultiplyV() to Vector3Multiply()
2020-01-05Update year to 2020raysan5
2019-08-09addition to raylib to create matrix from 3 euler angles (#938)chriscamacho
2019-08-03Replace tabs with spaces and update year of copyright notices (#927)Leandro Gabriel
* Update year of copyright notices * Fix mistake in comment * Fix typo ("algorythms") * Replace tabs with spaces * Remove trailing whitespace and fix mistake in comment * Fix ExportImageAsCode missing comment rectangle corner * Replace tab with spaces * Replace tabs with spaces
2019-04-13Merge pull request #799 from flashjaysan/masterRay
Update raymath.h
2019-04-13Update raymath.hflashjaysan
Removed a useless semicolon.
2018-10-24Reviewed functions definitionRay
2018-10-13Corrected func name typoraysan5
2018-09-13Merge pull request #641 from ChrisDill/masterRay
Added a few missing functions to raymath
2018-09-13Added a few missing functions to raymathChrisDill
- Added Vector2MultiplyV - Added Vector2DivideV - Added Vector3Divide - Added Vector3DivideV
2018-08-21lerp for vector2 and floatOğuzhan Çankaya
2018-08-16Improved raymath definesChrisDill
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
2018-08-16Raymath dllexport fix if _WIN32 definedChrisDill
- Added check for dllexport to compile if _WIN32 defined. - If not defined then use the original RMDEF.
2018-08-16Raymath dllexport fixChrisDill
- Added __declspec(dllexport) to RMDEF in raymath.h. This allows them to be accessed when importing from raylib.dll.
2018-08-05Fix compiler warings in texture.c and more.Kim Kulling
2018-08-04Fix compiler warnings, first partKim Kulling
2018-07-02Added Quaternion typedefRay
2018-06-30Added function: Vector3RotateByQuaternion()Ray
Rotate a Vector3 by a Quaternion
2018-05-28fabsf() not working with TCCRay
Replaced by fabs() that seem to work ok
2018-04-30Implemented MeshTangents()raysan5
- Added Vector3OrthoNormalize() to raymath.h - not sure if it is correct - Implemented MeshBinormals() - Mesh struct has not a place for them... - Updated model_material_pbr example - tested but not working on my GPU (old Intel HD), actually, it never worked on it...
2018-04-11raymath: Workaround tcc inline function limitationAhmad Fatoum
Reported in #435, tcc generates out-of-line definitions for inline symbols, something it shouldn't. This fix punishes tcc for that by making applications it compiles (slightly) larger...
2018-03-16Complete review of raymath for API consistencyRay
2018-03-15Reviewed raymath changesRay
2018-02-24raymath.h: Use C99 inline semanticsAhmad Fatoum
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code may define if they want to use it as header-only library. If multiple files in the same project define RAYMATH_HEADER_ONLY, they might each have duplicate out-of-line definitions of the same functions. By default, raymath.h exposes inline definitions, which instructs the compiler _not_ to generate out-of-line definitons, if out-of-line definitions are required, those of the file defined with RAYLIB_IMPLEMENTATION are used instead. There may be only one such file. In C++ mode, the compiler will select only one out-of-line definition automatically, so no need to define a RAYLIB_IMPLEMENTATION. Unfortunately, we have to remove raymath function declaration from raylib.h as those declarations would lead to duplicate out-of-line definitions which would yield linker errors. This problem didn't exist with GNU89 or C++, because there multiple defintions are ok, but in C99 they aren't.
2018-02-24Make MatrixToFloat and Vector3ToFloat reentrantAhmad Fatoum
Besides making it thread-safe, it suppresses a GCC warning when making them static inline in an upcoming patch.
2018-02-24Revert "raymath.h: Use C99 inline semantics"Ahmad Fatoum
This reverts commit 6ffc8cb7990fb4ff40f205cb53bec797b10e48a2. and commit e4d7bbec1ef08279495ac41f5f8c4be359c58cf0. which I pushed by mistake...
2018-02-24raymath.h: Use C99 inline semanticsAhmad Fatoum
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code may define if they want to use it as header-only library. If multiple files in the same project define RAYMATH_HEADER_ONLY, they might each have duplicate out-of-line definitions of the same functions. By default, raymath.h exposes inline definitions, which instructs the compiler _not_ to generate out-of-line definitons, if out-of-line definitions are required, those of the file defined with RAYLIB_IMPLEMENTATION are used instead. There may be only one such file. In C++ mode, the compiler will select only one out-of-line definition automatically, so no need to define a RAYLIB_IMPLEMENTATION. Unfortunately, we have to remove raymath function declaration from raylib.h as those declarations would lead to duplicate out-of-line definitions which would yield linker errors. This problem didn't exist with GNU89 or C++, because there multiple defintions are ok, but in C99 they aren't.
2018-02-24Make MatrixToFloat and Vector3ToFloat reentrantAhmad Fatoum
Besides making it thread-safe, it suppresses a GCC warning when making them static inline in an upcoming patch.
2017-12-15Manually review previous PRRay San
2017-12-14optimized matrixrotate function by removing identity matrixuser
2017-12-14make raymath compiling with msvc in c++ modeuser
2017-12-04Moved QuaternionNlerp() functionRay San
2017-08-23Fix typo in raymath.hMichael Campagnaro
2017-07-28Added Vector3MultiplyV()Ray
To multiply Vector3 by Vector3
2017-07-23Corrected issue on QuaternionFromVector3ToVector3()raysan5
2017-07-23Implemented some changesraysan5
2017-07-22Renamed Vector*() functions to Vector3*()raysan5
For consistency!
2017-07-22Corrected bug on MatrixPerspective()raysan5
Some other tweaks...
2017-07-21Some tweaks raymath relatedraysan5
2017-07-21Complete review of raymathraysan5
Now it should be coherent with OpenGL math standards
2017-07-21Moved some functions to raymathraysan5
Exposed some raymath useful functions to raylib API
2017-07-21MatrixPerspective() angle required in radiansraysan5
Consistent with similar functions in raymath
2017-06-29Fix some other typosWilhem Barbier
2017-06-29Fix some typos in raymath.hWilhem Barbier
2017-06-05Added note about transposingraysan5
2017-06-05Added note about transposingraysan5
2017-05-04Return angles as degreesRay
2017-05-04Added two new functions to raymathRay
2017-04-16Added Vector2 math functionsraysan5
Reviewed some Vector3 functions Added auxiliary Clamp() function