Andrea Fontana
c0715c1225
Fixed functions Vector2Angle and Vector3Angle ( #2203 )
* Fixed functions Vector2Angle and Vector3Angle
* typo
* Unrolled everything.
3 years ago
Jaedeok Kim
72f3b00b00
Fix Vector2Angle() not working as expected ( #2196 )
3 years ago
Ray
e7f48eb16b
Tweaks
3 years ago
HarriP
3cb4ef2599
Fix inverse length in Vector2Normalize ( #2189 )
Following the pattern in Vector3Normalize.
3 years ago
Steven Schveighoffer
fa7337e19c
Vector2Angle returns degrees instead of radians, but all other raymath ( #2193 )
functions use radians, making this awkward to use.
3 years ago
raysan5
599d6e810f
REVIEWED: models resources structure
3 years ago
Jeffery Myers
33ed452439
Fix dll exports so that raylib builds in visual studio again. ( #2037 )
3 years ago
Ray
8d7f97ee04
Remove trailing spaces
3 years ago
raysan5
7439c7547b
Review functions specifiers
3 years ago
raysan5
b972b8d324
REVIEWED: API functions specifiers
3 years ago
Ray
f869229b7f
Minor format tweaks
3 years ago
Ray
239c37246a
WARNING: REVIEWED: Follow a set of conventions
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
- Functions use always a "result" variable for return
- Functions are always defined inline
- Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)
3 years ago
raysan5
18c92b3104
ADDED: Vector3Angle()
3 years ago
raysan5
a09311a8fc
Tweaks
3 years ago
Ray
a5beb940f8
Remove trailing spaces
3 years ago
raysan5
311fe8f35b
Replaced TABS by spaces
4 years ago
raysan5
b4fddf146b
REVIEWED: Added new mechanism to avoid data types collision between modules that share same data types and can be used in standalone mode
4 years ago
raysan5
58e9a0894f
Reviewed some functions to avoid calling other functions
4 years ago
iskolbin
6ef3ab3d3a
impoves raylib_parser: makes it generic, adds -d key for functions define (RLAPI for raylib.h), increases maxiumum number of fields in structs and values in enums, doubles max length of struct field names; split float3/float16 struct typedefs in raymath to allow parser to process the file ( #1901 )
4 years ago
Jeffery Myers
c706b33b30
Don't normalize zero length vectors. ( #1896 )
4 years ago
raysan5
70ed52dd5d
REVIEWED: QuaternionFromAxisAngle() #1892
4 years ago
raysan5
5ed814e950
Minor tweaks and comments
4 years ago
Ray
f3d38018cd
Comment tweak
4 years ago
Ray
4b93feb172
Remove trail spaces
4 years ago
Ray
7bc2e922c9
Review some comments
4 years ago
Ray
b0dcdf688f
Reviewed functions description
Replaced: Returns -> Get
4 years ago
raysan5
e95d8bc655
Minor format tweaks
4 years ago
isaac553876299
d1ac38171c
Update raymath.h ( #1802 )
4 years ago
Ray
c828e481fb
Review code format
4 years ago
Hristo Stamenov
beeac18eb1
Fix QuaternionToMatrix returning transposed result. ( #1793 )
4 years ago
raysan5
8f1d81df0f
Review code formatting
4 years ago
Dan Bechard
5325d8d2ba
Don't call sqrtf when axis already normalized ( #1672 )
4 years ago
Ray
9909068714
Removed trailing spaces
4 years ago
Ray
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
4 years ago
Ray
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
4 years ago
Ray
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
4 years ago
Ray
742206c1f2
Review formatting
4 years ago
masterex1000
4e6253b546
Add check to flip quaternion ( #1624 )
4 years ago
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 years ago
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 years ago
raysan5
d7b4b9e485
Update year to 2021
4 years ago
raysan5
b78ee13791
ADDED: CheckCollisionLines()
Removed function from raymath
4 years ago
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 years ago
Random
0322fc28d4
optimized MatrixLookAt ( #1442 )
4 years ago
Ray
3e1cd487df
Remove trailing spaces
4 years ago
Ray
a4ea9f872f
Review "aggregate initializations" #1403
4 years ago
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 years ago
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 years ago
raysan5
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
4 years ago
raysan5
d0ebeb1713
Reorder some functions
4 years ago