Dav1dde / gl3n

OpenGL Maths for D (not glm for D).
http://dav1dde.github.com/gl3n/
Other
103 stars 49 forks source link

AABBT!int doesn't work #77

Closed DrInfiniteExplorer closed 7 years ago

DrInfiniteExplorer commented 7 years ago

It isn't possible to instantiate the AABBT-template with an int, it gives an error on this line since the constructor of the vec3s are hardcoded to be of type float.

Proposed solution: instantiate with cast(type)0.0 instead

Problem observed with DMD32 D Compiler v2.074.0 on windows

Dav1dde commented 7 years ago

You are right, this is wrong. PR welcome, otherwise I am gonna fix this when I have time to setup my development environment again.