|
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.
|