C3D Toolkit  Kernel - 110050, Vision - 2.5.0.18

A two-dimensional cube. More...

#include <mb_rect2d.h>

+ Collaboration diagram for MbRect2D:

Public Member Functions

 MbRect2D ()
 Default constructor.
 
 MbRect2D (double xmin, double ymin, double xmax, double ymax)
 Constructor by given bounds.
 
 MbRect2D (const MbCartPoint &, const MbCartPoint &)
 The constructor by two diagonal points.
 
 MbRect2D (const MbCartPoint3D &, const MbCartPoint3D &)
 The constructor by two diagonal three-dimensional points.
 
 MbRect2D (const MbRect2D &)
 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 cube.
 
void Invert ()
 Create everted two-dimensional cube.
 
void Short (double, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube by given factor.
 
void Short (double, double, double, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube by given factor.
 
void Short (double, const MbCartPoint &, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube by given factor.
 
void Short (double, const MbVector &, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube by given factor.
 
void Short (double, const MbCartPoint3D &, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube by given factor.
 
void Short (double, const MbVector3D &, bool bis=true, double delta=Math::lengthEpsilon)
 Decrease two-dimensional cube 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 cube.
 
void Include (const MbCartPoint &, const MbCartPoint &, bool bis=true, double delta=Math::lengthEpsilon)
 Set two-dimensional cube.
 
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 cube.
 
void IncludeEx (const MbCartPoint &, const MbCartPoint &)
 Set two-dimensional cube.
 
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 cube.
 
bool IsEmptyInt (const MbVector &) const
 Is there intersection with empty cube. More...
 
bool IsEmptyInt (const MbVector3D &) const
 Is there intersection with empty cube.
 
bool IsEmptyInt (const MbCartPoint3D &) const
 Is there intersection with empty cube.
 
void SetInRect (MbCartPoint3D &) const
 Drive three-dimensional point to cube.
 
void SetInRect (MbCartPoint &) const
 Drive two-dimensional point to cube.
 
void SetInRect (MbRect2D &) const
 Drive another cube to cube.
 
void SetInRect (double &, double &) const
 Drive two-dimensional point to cube.
 
void SetInRectX (double &) const
 Drive to cube.
 
void SetInRectY (double &) const
 Drive to cube.
 
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 cube by x.
 
double GetScaleY () const
 Get characteristic scale of two-dimensional cube by y.
 
double GetScale () const
 Get characteristic scale of two-dimensional cube.
 
void IncreaseX (double)
 Increase cube at x.
 
void IncreaseY (double)
 Increase cube 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 cube.
 

Public Attributes

MbRect1D rx
 Range for x.
 
MbRect1D ry
 Range for y.
 

Detailed Description

A two-dimensional cube.

Member Function Documentation

◆ IsEmptyInt()

bool MbRect2D::IsEmptyInt ( const MbVector p) const
inline

Is there intersection with empty cube.

Is there intersection with empty cube.

◆ IncreaseY()

void MbRect2D::IncreaseY ( double  delta)
inline

Increase cube at y.

Increase cube.


The documentation for this class was generated from the following file: