gl3n icon indicating copy to clipboard operation
gl3n copied to clipboard

OpenGL Maths for D (not glm for D).

Results 14 gl3n issues
Sort by recently updated
recently updated
newest added

I've added a toHash implementation to Vector which allows the type to be used as the key in an associative array

i have simply split up the module, no other changes for now. 1) i think the linalg module was huge 2) it is transparent since i created a package.d for...

I'm not sure this is the best way to go about getting a hash. But atleast this will allow vectors to be used as a key.

I having run `dub test`, many linker errors happen. ## Source /dub.json ```json { "name": "temp", "dependencies": { "gl3n": "~>1.3.1" } } ``` /src/main.d ```d import std; import gl3n.linalg; void...

It's missing `size_t toHash() const nothrow @safe`

Greetings. I wonderd if it would be usefull to use https://dlang.org/spec/simd.html in gl3n. This could come in handy if you use gl3n alot in collision detection or something similar. Would...

Hello, i am currently writing a rpg engine in D. I recently ran into a confusing problem caused by the following: In older OpenGL versions, especially when you only have...

all Matrix.invert(): currently the mixin AFAIK creates a dynamic array even though the matrix already contains one, just assignments would be enough. for example: https://github.com/Dav1dde/gl3n/blob/master/gl3n/linalg.d#L1036 Matrix.perspective() with FOV: https://github.com/Dav1dde/gl3n/blob/master/gl3n/linalg.d#L1179

enhancement

Hope I'm not spamming, but I wanted to get this down before I knocked off for the night in case I forgot. I haven't looked carefully yet, but I think...

enhancement

Wouldn't it be neat to be able to write: ``` d assert(clamp(vec2(-4.3, 2), -3, 4) == vec2(-3, 2)); assert(clamp(vec2(-2, 4), vec2(0, 0), vec2(1, 3)) == vec2(0, 3)); ```

enhancement