epsilon
From Genesis3D, its-
[ my engine ][ my game ][ my email ]
SPAM

#define GE_EPSILON ((geFloat)0.000797f)
SPAM

Rate me up.
If you mean the smallest float value, you should include the file float.h in your project and use FLT_MIN. For other similar constants, look on MSDN under float.h.
[edited by - jeeky on April 27, 2002 9:53:57 AM]
[edited by - jeeky on April 27, 2002 9:53:57 AM]
what exactly is an epsilon (the smallest float valuew im gessing). what is it used for?
[ my engine ][ my game ][ my email ]
SPAM

SPAM

Rate me up.
i don''t have the float.h because i use delphi so it is opp so i need a value
or if there is an equivalente can you give me it please
love and peace
or if there is an equivalente can you give me it please
love and peace
love and peace
OK.
If my last post was ignored.
Let me make it simple for you-
if you dont know what ''=='' means, it means
[ my engine ][ my game ][ my email ]
SPAM

If my last post was ignored.
Let me make it simple for you-
Epsilon == 0.000797
if you dont know what ''=='' means, it means
Equal to
SPAM

Rate me up.
float.h is a standard header, so should be available in any implementation. I know it is available on VC++, linux, and sgi (I just looked on the web. Maybe you should, too.).
BTW, there is a difference between FLT_MIN and FLT_EPSILON. FLT_MIN is the smallest positive float. FLT_EPSILON is the smallest x where ((1.0f + x) != 1.0f).
Once again, all of this info is readily available on the web. Just do a search under float.h.
BTW, there is a difference between FLT_MIN and FLT_EPSILON. FLT_MIN is the smallest positive float. FLT_EPSILON is the smallest x where ((1.0f + x) != 1.0f).
Once again, all of this info is readily available on the web. Just do a search under float.h.
thank you
but i''m sorry if i disturbed you
it exat the smallest value
so thank you again
love and peace
but i''m sorry if i disturbed you
it exat the smallest value
so thank you again
love and peace
love and peace
And now, direct from MSDN, the web, and many other easy to access locations:
EPSILON: Smallest positive number x, such that x + 1.0 is not equal to 1.0
FLT_EPSILON 1.192092896e–07F
DBL_EPSILON 2.2204460492503131e–016
LDBL_EPSILON 2.2204460492503131e–016
MIN: Minimum positive value.
FLT_MIN 1.175494351e–38F
DBL_MIN 2.2250738585072014e–308
LDBL_MIN 2.2250738585072014e–308
Although I gave in and handed you these numbers without you having to expend any effort on your part, there are many other handy constants in float.h that you may want to use someday. Therefore, I still recommend that you go look for it.
[edited by - jeeky on April 27, 2002 10:32:23 AM]
EPSILON: Smallest positive number x, such that x + 1.0 is not equal to 1.0
FLT_EPSILON 1.192092896e–07F
DBL_EPSILON 2.2204460492503131e–016
LDBL_EPSILON 2.2204460492503131e–016
MIN: Minimum positive value.
FLT_MIN 1.175494351e–38F
DBL_MIN 2.2250738585072014e–308
LDBL_MIN 2.2250738585072014e–308
Although I gave in and handed you these numbers without you having to expend any effort on your part, there are many other handy constants in float.h that you may want to use someday. Therefore, I still recommend that you go look for it.
[edited by - jeeky on April 27, 2002 10:32:23 AM]
Thank you jeeky for posting a proper definition for the meaning of epsilon. And thanks to the rest for posting #defined values, which are often useful in real-world applications, e.g., games!
Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement