Rectangle2D
Description
Represents a rectangle and angle of its rotation.
struct Rectangle2D
{
Point2D origin;
real angle;
real width;
real height;
};
Structure Fields
Type fields and default values (if defined) are described below:
Name | Type | Description |
---|---|---|
Origin | Point2D | Defines the top-left corner of the rectangle |
Angle | real | Rotation angle |
Width | real | Horizontal size |
Height | real | Vertical size |