Extents2d Class
Public Class Extents2d
Inherits Geometry2d
This language is not supported or no code example is available.
public class Extents2d : Geometry2d
This language is not supported or no code example is available.
public ref class Extents2d : public Geometry2d^
This language is not supported or no code example is available.
| Name | Description | |
|---|---|---|
|
Extents2d() | Constructor. Creates a new, empty extent object. |
|
Extents2d(Extents2d) | Copy constructor. |
|
Extents2d(Point2d, Point2d) | Creates an extent object given two opposite corners of it by two points. |
|
Extents2d(double, double, double, double) | Creates an extent object given two opposite corners of it by four real numbers x1,y1,x2,y2. |
| Name | Description | |
|---|---|---|
|
Area | Gets the area of the extent. If the box is empty 0.0 is gotten. |
|
Bottom | Gets or sets the bottom of the extent. |
|
BottomLeft | Gets a new point at the bottom left corner of this extent. If the extent is empty the result is undefined. |
|
BottomMid | |
|
BottomRight | Gets a new point at the bottom right corner of this extent. If the extent is empty the result is undefined. |
|
Center | Returns the center point of this extent. |
|
Diagonal | Gets the length of the diagonal |
|
Extents | Returns the extents of this extent (this function exists for inheritance purposes). Simply returns a new extent that is a copy of this one. |
|
Height | Gets the height of the extent box. If the box is empty 0.0 is gotten. |
|
IsCorrupt | |
|
Left | Gets or sets the left side of the extent. |
|
Length | Gets the length/circumference of the extent. If the box is empty 0.0 is gotten. |
|
MidLeft | |
|
MidRight | |
|
Right | Gets or sets the right side of the extent. |
|
Top | Gets or sets the top of the extent. |
|
TopLeft | Gets a new point at the top left of this extent. If the extent is empty the result is undefined. |
|
TopMid | |
|
TopRight | Gets a new point at the top right of this extent. If the extent is empty the result is undefined. |
|
Valid | Returns true if this extent is valid (not empty). |
|
Width | Gets the width of the extent box. If the box is empty 0.0 is gotten. |
| Name | Description | |
|---|---|---|
|
Append(Extents2d) | Grows the box to include another extent. If the appended extent appended is empty, nothing happens. If this extent is empty, its is set to equal the one appended. |
|
Append(Point2d) | Grows the extent to include a point. |
|
Clear() | Clears the box (makes it 'empty') |
|
Contains(Extents2d) | Checks if an Extents2d is totally inside this extent. |
|
Contains(Point2d) | Checks if a point is inside this extent. |
|
Distance(Point2d, bool) | Computes the minimum distance from a point to circumference of this extent. |
|
Distance(Point2d) | Computes the minimum distance from a point to circumference of this extent. |
|
GetOverlap(Extents2d) | |
|
Mirror(Point2d, Point2d) | Mirrors the extents in-place. This is done by mirroring the bottom left and the top right points and redefinig the box by theese two points. |
|
Offset(double) | Offsets the extent box with a specified distance in-place. A posetive offset will make the box bigger, and a negative will make it smaller. If the offset is less than -(width/2), the box will have a zero area (disappear) |
|
OverlapArea(Extents2d) | Calculates the overlapping area or 0 if no overlap |
|
Overlaps(Extents2d) | Checks if this extent overlaps another extent. If any of the two extents is empty they never overlap. Returns true if the two extents are NOT totally separated. Extents are viewed as 'solids'. |
|
Rotate(double) | Rotates this extent in-place around world origo. Since an extent is always axis aligned, this is done by definig a new extent area with the rotated lower left and upper right corners of this extent. |
|
Rotate(double, Point2d) | Rotates this extent in-place around a given point. Since an extent is always axis aligned, this is done by definig a new extent area with the rotated lower left and upper right corners of this extent. |
|
Scale(double) | Scales this extent in-place using world origo for scaling center. |
|
Scale(double, Point2d) | Scales this extent in-place using a given scaling center. |
|
Split(Extents2d) | |
|
ToRegion(double) | Converts this extent to a region representing it. |
|
ToString() | Creates a string representation of the extent suitable for debugging. |
|
Transform(Matrix2d) | Transforms the extents in-place with a matrix. Since the extents is axis aligned, rotating it will give a result of rotating the lower-left and upper-right corner and building a new box with thoose points. |
|
Translate(double, double) | Translates this extent by a given deltax and delta y. |
|
WriteAutoCADScript(StreamWriter, int) | Writes text to a stream, that can be loaded as a script into autocad. |