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) |
Defines a 2D oriented box.
The Box2d is defined via 2d axis, x-range and y-range.
|
inline |
Constructor.
|
inline |
Returns the area of the box.
|
inline |
Returns true if the point lies inside the Box2d.
|
inline |
Returns the box corner. theIndex must be from 0 to 3.
|
inline |
Returns true if at least one coordinate is infinite.
"Infinite" means that coordinate's absolute value is greater than \(10^{100}\).
|
inline |
Returns the Box2d scaled by scalar value.
|
inline |
Scales Box2d by scalar value.
|
inline |
Returns the perimeter of the box.
|
inline |
Sets the axis of Box2d.
|
inline |
Sets the range of Box2d along the X-axis to the specified value. The value must be greater than zero.
|
inline |
Sets the range of Box2d along the Y-axis to the specified value. The value must be greater than zero.
|
inline |
Transforms the axis of the box and scales its dimensions according to the transform scaling factor.
Transforms the Box2d.
|
inline |
Returns the transformed Box2d.