Hello Guest

Trig functions in JOML returning doubles - why not floats?

  • 1 Replies
  • 70 Views
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, 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?

*

Offline Cornix

  • *****
  • 487
Re: Trig functions in JOML returning doubles - why not floats?
« Reply #1 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.