mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0023404: Create SquareConfusion function in Precision package for speed and convenience
SquareConfusion function was created in FoundationClasses module -> TKMath toolkit -> Precision package. The function returns square of Precision::Confusion(). SquareConfusion function was corrected in FoundationClasses module -> TKMath toolkit -> Precision package. Squares of Precision::Confusion() were replaced by Precision::SquareConfusion().
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
#include <gp_Vec.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
|
||||
const Standard_Real SquareTolerance = Precision::Confusion()*Precision::Confusion();
|
||||
const Standard_Real SquareTolerance = Precision::SquareConfusion();
|
||||
|
||||
//=======================================================================
|
||||
//function : Nearest
|
||||
|
Reference in New Issue
Block a user