4b93feb172
Remove trail spaces
2021-06-13 17:08:30 +02:00
7bc2e922c9
Review some comments
2021-06-10 17:49:55 +02:00
b0dcdf688f
Reviewed functions description
...
Replaced: Returns -> Get
2021-06-10 17:43:58 +02:00
e95d8bc655
Minor format tweaks
2021-06-05 12:33:05 +02:00
d1ac38171c
Update raymath.h ( #1802 )
2021-06-01 17:00:40 +02:00
c828e481fb
Review code format
2021-05-29 13:56:08 +02:00
beeac18eb1
Fix QuaternionToMatrix returning transposed result. ( #1793 )
2021-05-29 13:53:00 +02:00
8f1d81df0f
Review code formatting
2021-03-31 17:55:46 +02:00
5325d8d2ba
Don't call sqrtf when axis already normalized ( #1672 )
2021-03-23 11:32:25 +01:00
9909068714
Removed trailing spaces
2021-03-19 19:43:44 +01:00
fe9181c1b4
REVIEWED: QuaternionFromEuler() #1651
2021-03-19 18:24:12 +01:00
ca1f2f9078
REVIEWED: MatrixRotateZYX() #1642
2021-03-18 13:47:18 +01:00
2b9d81c9bc
REVIEWED: QuaternionFromEuler() #1651
2021-03-18 13:38:56 +01:00
742206c1f2
Review formatting
2021-03-02 00:31:04 +01:00
4e6253b546
Add check to flip quaternion ( #1624 )
2021-03-02 00:29:48 +01:00
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 >
2021-02-20 23:37:32 +01:00
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 >
2021-02-20 11:15:40 +01:00
d7b4b9e485
Update year to 2021
2021-01-02 18:15:13 +01:00
b78ee13791
ADDED: CheckCollisionLines()
...
Removed function from raymath
2020-12-23 12:45:53 +01:00
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'
2020-12-21 21:04:02 +01:00
0322fc28d4
optimized MatrixLookAt ( #1442 )
2020-11-29 10:08:22 +01:00
3e1cd487df
Remove trailing spaces
2020-11-03 23:47:33 +01:00
a4ea9f872f
Review "aggregate initializations" #1403
2020-10-05 20:04:33 +02:00
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?
2020-10-04 12:12:52 +02:00
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
2020-09-27 10:29:05 +02:00
05cdaf7d01
MOVED: rlUnproject() [rlgl] -> Vector3Unproject() [raymath]
2020-09-01 21:08:45 +02:00
d0ebeb1713
Reorder some functions
2020-08-23 21:18:39 +02:00
ea832628c4
Review last PR formatting to follow raylib standards
2020-08-23 21:10:59 +02:00
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
...
Co-authored-by: codifies <nospam@antispam.com >
2020-08-23 21:01:26 +02:00
6e84120b89
fix bug in QuaternionFromVector3ToVector3 ( #1263 )
2020-05-27 17:52:23 +02:00
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
2020-05-15 13:08:28 +02:00
d14c51aa2a
Introduced Vector2 and Vector3 Square Lenght. ( #1248 )
...
* Introduced Vector2 and Vector3 Square Lenght.
* Square length functions renamed
2020-05-14 22:31:58 +02:00
b8055925bf
Update raymath.h
2020-05-01 18:19:54 +02:00
af744b07c3
Review latest PR formatting
2020-05-01 18:04:47 +02:00
4583987fb9
Add Vector2MoveTowards function ( #1233 )
2020-05-01 17:50:41 +02:00
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
2020-04-13 16:32:45 +02:00
41582f0448
Fix "variable is reassigned before use" linter warning on raymath.h ( #1158 )
2020-03-29 22:03:10 +02:00
3c2ee1cc75
Update raymath.h ( #1118 )
...
* Update raymath.h
Added Vector2Rotate Function.
* Update raymath.h
2020-03-02 10:22:08 +01:00
9b5a796213
Use float math functions
2020-02-26 20:20:52 +01:00
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
2020-02-04 16:55:24 +01:00
fa0d5bbf9e
Remove duplicate function
2020-01-23 21:12:50 +01:00
d10ff78822
WARNING: Renamed Vector3Multiply() to Vector3Scale()
...
Renamed for consistency with Vecto2Scale()
Also renamed Vector3MultiplyV() to Vector3Multiply()
2020-01-23 21:10:12 +01:00
21c30f43d4
Update year to 2020
2020-01-05 20:01:54 +01:00
6f2f09947f
addition to raylib to create matrix from 3 euler angles ( #938 )
2019-08-09 17:04:52 +02:00
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
2019-08-03 11:07:41 +02:00
d690e734f9
Merge pull request #799 from flashjaysan/master
...
Update raymath.h
2019-04-13 15:08:28 +02:00
310d1d1589
Update raymath.h
...
Removed a useless semicolon.
2019-04-13 14:35:07 +02:00
fc6f5a92f3
Reviewed functions definition
2018-10-24 22:24:59 +02:00
cd6c362485
Corrected func name typo
2018-10-13 16:00:54 +02:00
f32e23c11b
Merge pull request #641 from ChrisDill/master
...
Added a few missing functions to raymath
2018-09-13 12:51:45 +02:00