Define a simple rectangular box X refer to X axis Y refer to Y axis.
More...
#include <mathplot.h>
|
|
mpRange< double > | x |
| | range over x direction
|
| |
|
mpRange< double > | y |
| | range over y direction
|
| |
Define a simple rectangular box X refer to X axis Y refer to Y axis.
◆ mpFloatRectSimple()
| mpFloatRectSimple::mpFloatRectSimple |
( |
mpRange< double > |
_x, |
|
|
mpRange< double > |
_y |
|
) |
| |
|
inline |
Construct a simple rectangular box.
- Parameters
-
| _x | range over x direction |
| _y | range over y direction |
◆ InitializeBoundingBox()
| void mpFloatRectSimple::InitializeBoundingBox |
( |
double |
px, |
|
|
double |
py |
|
) |
| |
|
inline |
Initialize bounding box with an initial point.
- Parameters
-
| px | point on x-axis |
| py | point on y-axis |
◆ PointIsInside()
| bool mpFloatRectSimple::PointIsInside |
( |
double |
px, |
|
|
double |
py |
|
) |
| const |
|
inline |
Is point inside this bounding box?
- Parameters
-
| px | point on x-axis |
| py | point on y-axis |
- Returns
- true if point is inside the box
◆ UpdateBoundingBoxToInclude()
| void mpFloatRectSimple::UpdateBoundingBoxToInclude |
( |
double |
px, |
|
|
double |
py |
|
) |
| |
|
inline |
Update bounding box (X and Y axis) to include this point.
Expand the range to include the point.
- Parameters
-
| px | point on x-axis |
| py | point on y-axis |
The documentation for this struct was generated from the following file: