C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
A two-dimensional box. More...
#include <mb_rect2d.h>
Public Member Functions | |
MbRect2D () | |
Default constructor. | |
MbRect2D (double xmin, double ymin, double xmax, double ymax) | |
Constructor by given bounds. | |
MbRect2D (const MbCartPoint &pmin, const MbCartPoint &pmax) | |
The constructor by two diagonal points. | |
MbRect2D (const MbCartPoint3D &pmin, const MbCartPoint3D &pmax) | |
The constructor by two diagonal three-dimensional points. | |
MbRect2D (const MbRect2D &other) | |
Copy constructor. | |
void | Init () |
Initialize unspecified. | |
void | Init (double xmin, double ymin, double xmax, double ymax) |
Initialize by given bounds. | |
void | Init (const MbCartPoint &, const MbCartPoint &) |
Initialize by two diagonal points. | |
void | Init (const MbCartPoint3D &, const MbCartPoint3D &) |
Initialize by two diagonal three-dimensional points. | |
void | Init (const MbRect2D &) |
Initialize by another bounding box. | |
void | Init (const MbRect &) |
Initialize by another bounding box. | |
void | Invert () |
Create reverted two-dimensional box. | |
void | Short (double, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Short (double, double, double, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Short (double, const MbCartPoint &, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Short (double, const MbVector &, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Short (double, const MbCartPoint3D &, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Short (double, const MbVector3D &, bool bis=true, double delta=Math::lengthEpsilon) |
Decrease two-dimensional box by given factor. | |
void | Include (double, double, bool bis=true, double delta=Math::lengthEpsilon) |
Include point. | |
void | Include (const MbCartPoint &, bool bis=true, double delta=Math::lengthEpsilon) |
Include point. | |
void | Include (const MbVector &, bool bis=true, double delta=Math::lengthEpsilon) |
Include point. | |
void | Include (const MbCartPoint3D &, bool bis=true, double delta=Math::lengthEpsilon) |
Include point. | |
void | Include (const MbVector3D &, bool bis=true, double delta=Math::lengthEpsilon) |
Include point. | |
void | Include (const MbRect2D &, bool bis=true, double delta=Math::lengthEpsilon) |
Include another two-dimensional box. | |
void | Include (const MbCartPoint &, const MbCartPoint &, bool bis=true, double delta=Math::lengthEpsilon) |
Set two-dimensional box. | |
void | IncludeEx (double, double) |
Include point. | |
void | IncludeEx (const MbCartPoint &) |
Include point. | |
void | IncludeEx (const MbVector &) |
Include point. | |
void | IncludeEx (const MbCartPoint3D &) |
Include point. | |
void | IncludeEx (const MbVector3D &) |
Include point. | |
void | IncludeEx (const MbRect2D &) |
Include another two-dimensional box. | |
void | IncludeEx (const MbCartPoint &, const MbCartPoint &) |
Set two-dimensional box. | |
void | Equalize () |
Justify the region. | |
void | Equalize (MbCartPoint &, MbCartPoint &) const |
Justify the region. | |
void | Equalize (double &, double &, double &, double &) const |
Justify the region. | |
bool | IsEmpty () const |
Check if region is empty. | |
bool | IsDegenert () const |
Check if region is degenerate. | |
bool | IsIntersect (const MbCartPoint3D &) const |
Check if point intersects with rectangle. | |
bool | IsIntersect (const MbCartPoint &) const |
Check if point intersects with rectangle. | |
bool | IsIntersect (double, double) const |
Check if point intersects with rectangle. | |
bool | IsIntersect (const MbRect2D &) const |
Check if rectangles intersect. | |
bool | IsIntersect (const MbCartPoint &, const MbCartPoint &) const |
Check if rectangles intersect. | |
bool | IsIntersect (const MbCartPoint3D &, const MbCartPoint3D &) const |
Check if rectangles intersect. | |
bool | IsIntersect (double, double, double, double) const |
Check if rectangles intersect. | |
bool | IsEmptyInt (double, double) const |
Is there intersection with empty box. | |
bool | IsEmptyInt (const MbVector &) const |
Is there intersection with empty box. More... | |
bool | IsEmptyInt (const MbVector3D &) const |
Is there intersection with empty box. | |
bool | IsEmptyInt (const MbCartPoint3D &) const |
Is there intersection with empty box. | |
void | SetInRect (MbCartPoint3D &) const |
Drive three-dimensional point to box. | |
void | SetInRect (MbCartPoint &) const |
Drive two-dimensional point to box. | |
void | SetInRect (MbRect2D &) const |
Drive another box to box. | |
void | SetInRect (double &, double &) const |
Drive two-dimensional point to box. | |
void | SetInRectX (double &) const |
Drive to box. | |
void | SetInRectY (double &) const |
Drive to box. | |
double | GetXMin () const |
Get the minimum value of u. | |
double | GetXMax () const |
Get the maximum value of u. | |
double | GetYMin () const |
Get the minimum value of v. | |
double | GetYMax () const |
Get the maximum value of v. | |
double | GetScaleX () const |
Get characteristic scale of two-dimensional box by x. | |
double | GetScaleY () const |
Get characteristic scale of two-dimensional box by y. | |
double | GetScale () const |
Get characteristic scale of two-dimensional box. | |
void | IncreaseX (double) |
Increase box at x. | |
void | IncreaseY (double) |
Increase box at y. More... | |
bool | IsBoundX (double, double) const |
Check if value given by the first parameter belongs to X bound with tolerance given by the second parameter. | |
bool | IsBoundY (double, double) const |
Check if value given by the first parameter belongs to Y bound with tolerance given by the second parameter. | |
bool | IsBound (double, double, double) const |
Check if value given by the first parameter belongs to bound with tolerance given by the second parameter. | |
bool | IsBound (const MbCartPoint &, double) const |
Check if value given by the first parameter belongs to bound with tolerance given by the second parameter. | |
bool | IsBound (const MbVector &, double) const |
Check if value given by the first parameter belongs to bound with tolerance given by the second parameter. | |
bool | IsBound (const MbCartPoint3D &, double) const |
Check if value given by the first parameter belongs to bound with tolerance given by the second parameter. | |
bool | IsBound (const MbVector3D &, double) const |
Check if value given by the first parameter belongs to bound with tolerance given by the second parameter. | |
void | Move (const MbVector &) |
Move box. | |
void | GetVertex (size_t index, MbCartPoint &p) const |
Get vertex of bounding rectangle by index in range from 0 to 3. | |
Public Attributes | |
MbRect1D | rx |
Range for x. | |
MbRect1D | ry |
Range for y. | |
A two-dimensional box.
|
inline |
Is there intersection with empty box.
Is there intersection with empty box.
|
inline |
Increase box at y.
Increase box.