hgeRect Constructors

To create and initalize a hgeRect object you may use one of these constructors:

hgeRect();

hgeRect(
  float x1,
  float y1,
  float x2,
  float y2
);

hgeRect(
  const hgeRect &rect
);

Parameters

x1
The top-left corner X-coordinate.
y1
The top-left corner Y-coordinate.
x2
The bottom-right corner X-coordinate.
y2
The bottom-right corner Y-coordinate.

Requirements

Header: hgerect.h