LWJGL Forum

Programming => LWJGL Documentation => Topic started by: WeBeJammin on May 21, 2019, 03:06:10

Title: Trig functions in JOML returning doubles - why not floats?
Post by: WeBeJammin on May 21, 2019, 03:06:10
I know this is basic, but I thought I should ask the question to see if I was missing something.

From what I've read (https://stackoverflow.com/questions/2079906/float-vs-double-on-graphics-hardware), OpenGL and GPU programming are tuned to use floats. But all the default trigonometry functions in the suggested JOML add-on return doubles. Wouldn't it be better to return floats?
Title: Re: Trig functions in JOML returning doubles - why not floats?
Post by: Cornix on May 21, 2019, 10:59:01
Why would it be better?
What do you believe would be improved?
Casting doubles to floats is trivial.