v1.1
 
BoundingRect Class Reference

Bounding rectangle. More...

Public Member Functions

 BoundingRect (Point2D point1, Point2D point2)
 Constructor.
 
number GetMinX ()
 Returns the minimum on the X axis.
 
number GetMinY ()
 Returns the minimum on the Y axis.
 
number GetMaxX ()
 Returns the maximum on the X axis.
 
number GetMaxY ()
 Returns the maximum on the Y axis.
 
Point2D GetCenter ()
 Returns the bounding rectangle center point.
 
number GetWidth ()
 Returns the width of the bounding rectangle.
 
number GetHeight ()
 Returns the height of the bounding rectangle.
 

Detailed Description

Bounding rectangle.

The bounding rectangle indicates the overall dimensions of the object on the plane.

Constructor & Destructor Documentation

◆ BoundingRect()

BoundingRect ( Point2D point1,
Point2D point2 )

Constructor.

Parameters
point1The bottom left corner of the rectangle.
point2The top right corner of the rectangle.