Commit Graph

23 Commits

Author SHA1 Message Date
3172dfbcd9 Added 2 helper methods to Math. 2022-02-04 15:52:48 +01:00
5aa8f6ccd3 Added half bits to float conversions from the godot engine. 2022-02-04 13:25:11 +01:00
2c16563d97 Added abs helper method to Rect2 and Rect2i. 2022-02-04 13:21:15 +01:00
e34079ee46 Vector2 <-> Vector2i conversion operators. 2022-02-04 13:17:55 +01:00
cf8dd43fd7 Added Rect2 <-> Rect2i conversion operators. Also smaller helper methods. 2022-02-04 13:13:27 +01:00
334075aeca Ported Rect2's clip from godot to both Rect2 and Rect2i. 2022-02-04 13:06:13 +01:00
69a2d2f1b7 Added ABS, GSN, MIN, MAX, CLAMP macros to math.h for convenience. 2022-02-04 13:05:49 +01:00
e28007085c Added position and size helper methods to Rect2 and Rect2i. 2022-02-04 12:54:28 +01:00
53b9236c5f Added Rect2i. 2022-02-04 11:56:43 +01:00
202df3bac6 Added Vector2i. 2022-02-04 11:54:46 +01:00
bfa4a96c2a Fix 2 typos. 2022-02-04 11:52:40 +01:00
397459ce7b Added the Color class from godot. Removed the ColorUInt8 typedef. 2022-02-04 11:34:07 +01:00
5503e58d54 added round to Math, and fixed the type of the double pow's arguments. 2022-02-04 11:31:43 +01:00
d0c80ffe6a Removed sdl rect conversion. 2022-02-04 11:30:40 +01:00
e9250d185f Added vector2 based constructors to rect2. 2022-02-04 11:30:01 +01:00
a723d748a7 Removed sdl color conversion from Color. 2022-02-04 10:39:53 +01:00
16746f513d Added sinh, cosh, tanh, sinc and sincn to the Math class. 2022-02-04 10:38:49 +01:00
8dda820a54 Renamed Color to ColorUInt8, and typedef-ed it to Color. 2022-02-04 10:37:36 +01:00
19a70a5507 Added a few math classes from Godot. 2021-11-16 03:09:27 +01:00
ff6dd8ea5d Operator cleanup to Vector2 and Vector3. Also added a few methods, and made x,y,z variables a union with an array, so the vector is also indexable. 2021-11-16 03:08:16 +01:00
e74549776f Added expand_to to Rect2. 2021-11-16 03:06:58 +01:00
f50f52e593 Added a few smaller helpers to math.h. 2021-11-16 03:06:28 +01:00
59e859519b Moved the math class to a new math subfolder in core/, and also added my other math realted classes. 2021-11-13 11:51:43 +01:00