mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -164,6 +164,11 @@ is
|
||||
-- becomes easily measurable, but only within a restricted
|
||||
-- space which contains some small objects of the complete scene.
|
||||
|
||||
SquareConfusion returns Real from Standard;
|
||||
---Purpose:
|
||||
-- Returns square of Confusion.
|
||||
-- Created for speed and convenience.
|
||||
|
||||
Intersection returns Real from Standard;
|
||||
---Purpose:Returns the precision value in real space, frequently
|
||||
-- used by intersection algorithms to decide that a solution is reached.
|
||||
|
@@ -52,6 +52,16 @@ inline Standard_Real Precision::Confusion()
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SquareConfusion
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
inline Standard_Real Precision::SquareConfusion()
|
||||
{
|
||||
return Confusion() * Confusion();
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Intersection
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user