Epsilon for templates

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
AReichl
Posts: 269
Joined: Wed Jul 13, 2011 2:34 pm

Epsilon for templates

Post by AReichl »

I just found this on the Urho3D forum:
http://urho3d.prophpbb.com/topic1903.html

Similar problem as we have with templates of e.g. vector and quaternion.
CuteAlien
Admin
Posts: 10021
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Epsilon for templates

Post by CuteAlien »

Not sure if those values are the same (I think Irrlicht used other constants), but yeah, if we swich to STL we might also consider using stuff like numeric_limits.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply