Hristo Stamenov
beeac18eb1
Fix QuaternionToMatrix returning transposed result. ( #1793 )
3 年之前
raysan5
8f1d81df0f
Review code formatting
4 年之前
Dan Bechard
5325d8d2ba
Don't call sqrtf when axis already normalized ( #1672 )
4 年之前
Ray
9909068714
Removed trailing spaces
4 年之前
Ray
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
4 年之前
Ray
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
4 年之前
Ray
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
4 年之前
Ray
742206c1f2
Review formatting
4 年之前
masterex1000
4e6253b546
Add check to flip quaternion ( #1624 )
4 年之前
Jeffery Myers
48a7cd3c87
[Examples] Fix typecast warnings in examples. ( #1601 )
* Fixing typecast warnings generated by visual studio 2019 in examples.
* Changes to fixes based on feedback
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
4 年之前
Jeffery Myers
2375464213
[Physics] Fix typecast warnings generated by visual studio 2019 ( #1599 )
* More warning fixes for physics and math
* fix a crash introduced with the warning changed.
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
4 年之前
raysan5
d7b4b9e485
Update year to 2021
4 年之前
raysan5
b78ee13791
ADDED: CheckCollisionLines()
Removed function from raymath
4 年之前
Victor Gallet
668b3e4cfb
[Math Feature]: Add two functions for Vector2 to know if two lines intersect and two segments intersect ( #1466 )
* Add a function to know if two lines intersect each other and if yes, get the intersection point
* Remove indents
* Rework the declaration of the 'Vector2LineIntersect' function, and add the 'Vector2SegmentIntersect' function
* Remove bad indents
* Fix compilation issues
* Fix compilation error
* Fix compilation error
* Replace keyword '_Bool' by 'bool'
4 年之前
Random
0322fc28d4
optimized MatrixLookAt ( #1442 )
4 年之前
Ray
3e1cd487df
Remove trailing spaces
4 年之前
Ray
a4ea9f872f
Review "aggregate initializations" #1403
4 年之前
Daniel-Junior Dubé
a8685ee4fd
Add Vector2Reflect to raymath.h ( #1400 )
Vector3Reflect exists but not Vector2Reflect. The code is pretty much the same.
I'm not sure what RMDEF does, but I added it to match other function definitions (haven't done much C programming, maybe I'm missing something). Can someone explain to me what it does?
4 年之前
seanpringle
4bcddc3b15
[wip] rlDrawMeshInstanced ( #1318 )
* rlDrawMeshInstanced first attempt
* rlDrawMeshInstanced OpenGL 3.3 and VAO checks
* rlDrawMeshInstanced GetShaderAttribLocation; comments
* example instanced shader
* RLGL_STANDALONE RAYMATH_STANDALONE Vector4
* apply suggested naming changes; add instanced mesh example
* remove orphan variables
4 年之前
raysan5
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
4 年之前
raysan5
d0ebeb1713
Reorder some functions
4 年之前
raysan5
ea832628c4
Review last PR formatting to follow raylib standards
4 年之前
chriscamacho
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
Co-authored-by: codifies <nospam@antispam.com>
4 年之前
jvocaturo
6e84120b89
fix bug in QuaternionFromVector3ToVector3 ( #1263 )
4 年之前
Noor Wachid
abb94bd2ff
Adding Normalize and Remap functions ( #1247 )
* Adding Norm and Remap functions
// Normalize input value within input range
// Remap input value within input range to output range
* Rename Norm to Normalize
To make it uniforms with Raylib's functions
* Calculate Remap without other functions
4 年之前
ThePituLegend
d14c51aa2a
Introduced Vector2 and Vector3 Square Lenght. ( #1248 )
* Introduced Vector2 and Vector3 Square Lenght.
* Square length functions renamed
4 年之前
raysan5
b8055925bf
Update raymath.h
4 年之前
raysan5
af744b07c3
Review latest PR formatting
4 年之前
Anata
4583987fb9
Add Vector2MoveTowards function ( #1233 )
4 年之前
G3bE
32387317bf
Make raymath more consistent ( #1197 )
* Make raymath naming and functions more consistent
* Minor fixes
* Fix examples
* Fix Physac
* New naming rules
* Apply naming to Quaternion functions
* Apply to models.c
* Remove *MulitplyValue / *DivideValue
5 年之前
Valentin Lemière
41582f0448
Fix "variable is reassigned before use" linter warning on raymath.h ( #1158 )
5 年之前
i-right-i
3c2ee1cc75
Update raymath.h ( #1118 )
* Update raymath.h
Added Vector2Rotate Function.
* Update raymath.h
5 年之前
Ray
9b5a796213
Use float math functions
5 年之前
Ray
b5fe41f41a
Review libc dependencies and remove when possible
Just for clarification, no plans to remove libc dependency, just did some code analysis to see how much raylib depend on stardard C library. My conclusions:
- stdlib.h: primary dependency is for malloc() and free()
- stdio.h: primary dependency is for FILE access, maybe it could go through a custom ABI?
- string.h: just around 8 functions required
- math.h: just around 8 functions required
- others: 1-2 functions required for some other headers
5 年之前
Ray
fa0d5bbf9e
Remove duplicate function
5 年之前
Ray
d10ff78822
WARNING: Renamed Vector3Multiply() to Vector3Scale()
Renamed for consistency with Vecto2Scale()
Also renamed Vector3MultiplyV() to Vector3Multiply()
5 年之前
raysan5
21c30f43d4
Update year to 2020
5 年之前
chriscamacho
6f2f09947f
addition to raylib to create matrix from 3 euler angles ( #938 )
5 年之前
Leandro Gabriel
89c16baf18
Replace tabs with spaces and update year of copyright notices ( #927 )
* 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
5 年之前
flashjaysan
310d1d1589
Update raymath.h
Removed a useless semicolon.
6 年之前
Ray
fc6f5a92f3
Reviewed functions definition
6 年之前
raysan5
cd6c362485
Corrected func name typo
6 年之前
ChrisDill
1e1bbaa40b
Added a few missing functions to raymath
- Added Vector2MultiplyV
- Added Vector2DivideV
- Added Vector3Divide
- Added Vector3DivideV
6 年之前
Oğuzhan Çankaya
2bef76735d
lerp for vector2 and float
6 年之前
ChrisDill
c669c6762f
Improved raymath defines
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
6 年之前
ChrisDill
a187361c6f
Raymath dllexport fix if _WIN32 defined
- Added check for dllexport to compile if _WIN32 defined.
- If not defined then use the original RMDEF.
6 年之前
ChrisDill
42b52ecdb1
Raymath dllexport fix
- Added __declspec(dllexport) to RMDEF in raymath.h. This allows them to be accessed when importing from raylib.dll.
6 年之前
Kim Kulling
b2cac82fa0
Fix compiler warings in texture.c and more.
6 年之前
Kim Kulling
ecf8bff4aa
Fix compiler warnings, first part
6 年之前
Ray
7b971e0623
Added Quaternion typedef
6 年之前