User Tools

Site Tools


floating_point_comparison

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
floating_point_comparison [2022/04/29 23:45]
max
floating_point_comparison [2022/04/29 23:46]
max
Line 11: Line 11:
 The default option is a combination of both the absolute and relative methods of epsilon comparison. ((http://www.realtimecollisiondetection.net/pubs/Tolerances/)) The default option is a combination of both the absolute and relative methods of epsilon comparison. ((http://www.realtimecollisiondetection.net/pubs/Tolerances/))
 The second option is simply the computer's default "==" operator. It is not recommended, but it is marginally faster.  The second option is simply the computer's default "==" operator. It is not recommended, but it is marginally faster. 
 +
 +Which method the engine uses can be changed in the source code in the ''IPCommon.h'' file.
  
 ===== The absolute method ===== ===== The absolute method =====
floating_point_comparison.txt ยท Last modified: 2022/04/29 23:54 by max