C3D Toolkit  Kernel - 110464, Vision - 2.5.0.35

One-dimensional cube. More...

#include <mb_rect1d.h>

Public Member Functions

 MbRect1D ()
 Default constructor.
 
 MbRect1D (const MbRect1D &)
 Copy constructor.
 
 MbRect1D (double pmin, double pmax, bool equalize=true)
 Constructor by given bounds.
 
void Init ()
 Initialize unspecified.
 
void Init (const MbRect1D &)
 Initialize by another cube.
 
void Init (double pmin, double pmax, bool equalize=true)
 Initialize by given bounds.
 
void Invert ()
 Create reverted one-dimensional cube.
 
void Short (double, bool bis=true, double delta=LENGTH_EPSILON)
 Decrease one-dimensional cube by a given factor and increase by delta.
 
void Short (double, double, bool bis=true, double delta=LENGTH_EPSILON)
 Decrease one-dimensional cube by a given factor relative to point and increase by delta.
 
void Include (double, bool bis=true, double delta=LENGTH_EPSILON)
 Include point.
 
void Include (const MbRect1D &, bool bis=true, double delta=LENGTH_EPSILON)
 Set cube.
 
void IncludeEx (double)
 Include point.
 
void IncludeEx (const MbRect1D &)
 Set cube. More...
 
void Equalize ()
 Justify range (zmin, zmax).
 
bool IsEmpty () const
 Check if region is reverted.
 
bool IsDegenert () const
 Check if region is degenerate.
 
bool IsIntersect (const MbRect1D &) const
 Is there intersection with another rectangle.
 
bool IsIntersect (double) const
 Is there intersection with point.
 
bool IsIntersect (double, double) const
 Is there intersection with another rectangle.
 
bool IsEmptyInt (double) const
 Is there intersection with empty cube.
 
void SetInR (double &) const
 Drive one-dimensional point to cube.
 
void SetInRect (double &) const
 Drive one-dimensional point to cube.
 
void SetInRect (MbRect1D &) const
 Drive another region to cube.
 
double GetMin () const
 Get minimum.
 
double GetMax () const
 Get maximum.
 
void SetMin (double v)
 Set minimum.
 
void SetMax (double v)
 Set maximum.
 
double GetScale () const
 Get characteristic scale of one-dimensional cube.
 
void Increase (double)
 Increase cube.
 
bool IsBound (double, double) const
 Check if first parameter belongs to bound with tolerance given by second parameter.
 
void Move (double)
 Move cube.
 
bool IsEqual (const MbRect1D &, double eps) const
 Check equality of two cubes with given tolerance.
 
bool Intersection (const MbRect1D &, const MbRect1D &, double eps=LENGTH_EPSILON)
 Find bounding box of two bounding boxes intersection.
 
bool IsSame (const MbRect1D &other, double accuracy) const
 Determine whether an object is equal?
 
bool operator== (const MbRect1D &) const
 Check for equality (tolerance PARAM_REGION).
 
bool operator< (const MbRect1D &) const
 Check for lesser (tolerance PARAM_REGION).
 

Public Attributes

double zmin
 Start of range.
 
double zmax
 End of range.
 

Detailed Description

One-dimensional cube.

Member Function Documentation

◆ IncludeEx()

void MbRect1D::IncludeEx ( const MbRect1D other)
inline

Set cube.

Justify range.


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