Go to the source code of this file.
|
void | pointsExtents (OdGePoint2d &minPt, OdGePoint2d &maxPt, const OdGePoint2d &pt1, const OdGePoint2d &pt2) |
|
bool | extendExtents (double &minValue, double &maxValue, const double &value) |
|
bool | extendExtents (OdGePoint2d &minPt, OdGePoint2d &maxPt, const OdGePoint2d &pt) |
|
bool | isBoxContainsPoint (const OdGePoint2d &minPt, const OdGePoint2d &maxPt, const OdGePoint2d &pt, const OdGeTol &tol=OdGeContext::gTol) |
|
◆ _ODGEEXTENTS2D_INCLUDED_
#define _ODGEEXTENTS2D_INCLUDED_ /*!DOM*/ |
◆ INVALIDEXTENTS
#define INVALIDEXTENTS 1.0e20 |
◆ extendExtents() [1/2]
bool extendExtents |
( |
double & |
minValue, |
|
|
double & |
maxValue, |
|
|
const double & |
value |
|
) |
| |
|
inline |
Updates one of the values of the extents ('minValue' or 'maxValue') if the specified 'value' is not between the minimum and maximum values.
- Parameters
-
minValue | [in/out] Receives a new minimum value if the specified 'value' is less than current 'minValue'. |
maxValue | [in/out] Receives a new maximum value if the specified 'value' is greater than current 'maxValue'. |
value | [in] Value to compare. |
- Returns
- true if extents were extended (new 'minValue' or 'maxValue' was received), false otherwise ('value' lied between 'minValue' and 'maxValue').
Definition at line 451 of file GeExtents2d.h.
◆ extendExtents() [2/2]
Extends point's coordinates of 'minPt' or/and 'maxPt' if coordinates of the 'pt' parameter are not between corresponding coordinates the minimum and maximum points. If 'pt' has one of coordinates (or both) less than 'minPt', these coordinates are assigned to 'minPt'. If 'pt' has one of coordinates (or both) greater than 'maxPt', these coordinates are assigned to 'maxPt'.
- Parameters
-
minPt | [in/out] Receives new coordinates for a minimum point. |
maxPt | [in/out] Receives new coordinates for a maximum point. |
pt | [in] Point to compare. |
- Returns
- true if coordinates of 'minPt' or/and 'maxPt' have been changed, false otherwise.
Definition at line 487 of file GeExtents2d.h.
◆ isBoxContainsPoint()
Checks whether the specified point lies in the extents defined by its minimum and maximum points.
- Parameters
-
minPt | [in] Point of the extents minimum. |
maxPt | [in] Point of the extents maximum. |
pt | [in] Point to check. |
tol | [in] Geometric tolerance. |
- Returns
- true if the point is placed in the extents or on its border, false otherwise.
Definition at line 507 of file GeExtents2d.h.
◆ pointsExtents()
Updates a minimum and maximum points according to coordinates of the input points.
- Parameters
-
minPt | [out] Resulting minimum point. |
maxPt | [out] Resulting maximum point. |
pt1 | [in] First point to be processed. |
pt2 | [in] Second point to be processed. |
Definition at line 412 of file GeExtents2d.h.