Hide menu
Loading...
Searching...
No Matches
cadex.Geom.Box2d Class Reference

Defines a 2D oriented box. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Box2d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Box2d (cadex.Geom.Axis2d theAxis, double theXRange, double theYRange)
 Constructor.
 
bool IsInfinite ()
 Returns true if at least one coordinate is infinite.
 
void SetAxis (cadex.Geom.Axis2d theAxis)
 Sets the axis of Box2d.
 
void SetXRange (double theXRange)
 Sets the range of Box2d along the X-axis to the specified value. The value must be greater than zero.
 
void SetYRange (double theYRange)
 Sets the range of Box2d along the Y-axis to the specified value. The value must be greater than zero.
 
cadex.Geom.Axis2d Axis ()
 
double XRange ()
 
double YRange ()
 
cadex.Geom.Point2d Center ()
 
cadex.Geom.Point2d Corner (uint theIndex)
 Returns the box corner. theIndex must be from 0 to 3.
 
double Area ()
 Returns the area of the box.
 
double Perimeter ()
 Returns the perimeter of the box.
 
bool Contains (cadex.Geom.Point2d thePoint)
 Returns true if the point lies inside the Box2d.
 
void Multiply (double theValue)
 Scales Box2d by scalar value.
 
cadex.Geom.Box2d Multiplied (double theValue)
 Returns the Box2d scaled by scalar value.
 
void Transform (cadex.Geom.Transformation2d theTransformation)
 Transforms the axis of the box and scales its dimensions according to the transform scaling factor.
 
cadex.Geom.Box2d Transformed (cadex.Geom.Transformation2d theTransformation)
 Returns the transformed Box2d.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines a 2D oriented box.

The Box2d is defined via 2d axis, x-range and y-range.

Constructor & Destructor Documentation

◆ Box2d()

cadex.Geom.Box2d.Box2d ( cadex.Geom.Axis2d theAxis,
double theXRange,
double theYRange )
inline

Constructor.

Member Function Documentation

◆ Area()

double cadex.Geom.Box2d.Area ( )
inline

Returns the area of the box.

◆ Contains()

bool cadex.Geom.Box2d.Contains ( cadex.Geom.Point2d thePoint)
inline

Returns true if the point lies inside the Box2d.

◆ Corner()

cadex.Geom.Point2d cadex.Geom.Box2d.Corner ( uint theIndex)
inline

Returns the box corner. theIndex must be from 0 to 3.

◆ IsInfinite()

bool cadex.Geom.Box2d.IsInfinite ( )
inline

Returns true if at least one coordinate is infinite.

"Infinite" means that coordinate's absolute value is greater than \(10^{100}\).

◆ Multiplied()

cadex.Geom.Box2d cadex.Geom.Box2d.Multiplied ( double theValue)
inline

Returns the Box2d scaled by scalar value.

◆ Multiply()

void cadex.Geom.Box2d.Multiply ( double theValue)
inline

Scales Box2d by scalar value.

◆ Perimeter()

double cadex.Geom.Box2d.Perimeter ( )
inline

Returns the perimeter of the box.

◆ SetAxis()

void cadex.Geom.Box2d.SetAxis ( cadex.Geom.Axis2d theAxis)
inline

Sets the axis of Box2d.

◆ SetXRange()

void cadex.Geom.Box2d.SetXRange ( double theXRange)
inline

Sets the range of Box2d along the X-axis to the specified value. The value must be greater than zero.

◆ SetYRange()

void cadex.Geom.Box2d.SetYRange ( double theYRange)
inline

Sets the range of Box2d along the Y-axis to the specified value. The value must be greater than zero.

◆ Transform()

void cadex.Geom.Box2d.Transform ( cadex.Geom.Transformation2d theTransformation)
inline

Transforms the axis of the box and scales its dimensions according to the transform scaling factor.

Transforms the Box2d.

◆ Transformed()

cadex.Geom.Box2d cadex.Geom.Box2d.Transformed ( cadex.Geom.Transformation2d theTransformation)
inline

Returns the transformed Box2d.