www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - godot-math v0.05

reply Guillaume Piolat <first.nam_e gmail.com> writes:


The `godot-math` package is a port of Godot's math to D.

The idea is to have the same API so as to reuse the existing 
Godot documentation.
Whole API is `pure nothrow  nogc  safe` and depends on C runtime 
+ `numem` only.

This should be suitable for both 2D UI and 3D.

Feel free to suggest changes in the bug tracker.

   - DUB: https://code.dlang.org/packages/godot-math
   - Documentation: 
https://docs.godotengine.org/en/stable/tutorials/math/index.html
   - Code: https://github.com/AuburnSounds/godot-math
Jan 06
parent reply Kapendev <alexandroskapretsos gmail.com> writes:
On Tuesday, 6 January 2026 at 14:08:20 UTC, Guillaume Piolat 
wrote:
 The `godot-math` package is a port of Godot's math to D.
Looks nice. Could be added to awesome-d. Btw, what is numem used for? I get the C runtime part.
Jan 06
parent Guillaume Piolat <first.nam_e gmail.com> writes:
On Tuesday, 6 January 2026 at 14:23:14 UTC, Kapendev wrote:
 On Tuesday, 6 January 2026 at 14:08:20 UTC, Guillaume Piolat 
 wrote:
 The `godot-math` package is a port of Godot's math to D.
Looks nice. Could be added to awesome-d. Btw, what is numem used for? I get the C runtime part.
Here `numem` is used just for some metaprogramming stuff. It's a pretty useful library anyway to make the D runtime a [late-binding decision](https://dplug.org/public/tutorials/Dplug%20Tutorials%2023%20-%20Movin %20to%20numem.pdf), but technically the meta-stuff _could_ be copied to godot-math. Since we're probably going to used other numem-based packages it won't cost much in the end.
Jan 06