Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Util.Geometry.BoundingBoxD

Summary

Represents a bounding box, in terms of the minimal and maximal X and Y coordinates.

Instance methods

voidUpdates the bounding box by extending the bounds, if necessary, to include the specified bounding box.
void
AddCircle(ref PointD center, double radius)
Updates the bounding box by extending the bounds, if necessary, to include the specified circle.
voidUpdates the bounding box by extending the bounds, if necessary, to include the specified point.
void
AddPoint(IEnumerable<PointD> points)
Updates the bounding box by extending the bounds, if necessary, to include the specified points.
void
AddPoint(double x, double y)
Updates the bounding box by extending the bounds, if necessary, to include the specified point.
doubleReturns the area of this bounding box.
boolReturns true iff this bounding box contains the specified point.
boolReturns true if this bounding box intersects with the specified bounding box.
boolReturns true if this bounding box intersects with the specified ray.
EdgeD[]Returns an array of the four edges of this bounding box.
PolygonDConverts this bounding box to a polygon.
PointD[]Returns an array of the four vertices of this bounding box.
EdgeDReturns the vertical edge of this bounding box with the largest X coordinate.
EdgeDReturns the vertical edge of this bounding box with the smallest X coordinate.
EdgeDReturns the horizontal edge of this bounding box with the largest Y coordinate.
EdgeDReturns the horizontal edge of this bounding box with the smallest Y coordinate.

Static methods

BoundingBoxD
FromCircle(ref PointD center, double radius)
Returns a new BoundingBox bounding the specified circle.
BoundingBoxD
FromEdge(ref EdgeD edge)
Returns a new BoundingBox bounding the specified edge.
BoundingBoxD
BoundingBoxDReturns a new BoundingBox bounding a single point.
BoundingBoxD
FromPoint(IEnumerable<PointD> sites)
Returns a new BoundingBox bounding all the points specified.
BoundingBoxD
FromPoint(double x, double y)
Returns a new BoundingBox bounding a single point.
BoundingBoxD
FromPoint(ref PointD pt1, ref PointD pt2)
Returns a new BoundingBox bounding the two points specified.
BoundingBoxD
BoundingBoxD
FromPoint(double x1, double y1, double x2, double y2)

Instance properties

double Gets the difference between the larger and the smaller Y limits of the box, i.e. the height of the bounding box.
double Gets the difference between the larger and the smaller X limits of the box, i.e. the width of the bounding box.

Static fields

BoundingBoxDAn empty bounding box - which doesn't have any bounds yet.

Instance fields

doubleThe largest X coordinate.
doubleThe smallest X coordinate.
doubleThe largest Y coordinate.
doubleThe smallest Y coordinate.