#include <BRotatedRect.h>
Public Member Functions | |
| BRotatedRect (const BRect &rBounds, const double dAngle, const double dHeight) | |
| Constructs a BRotatedRect and calculates the four points associated with the rectangle's corners. | |
| BPoint | GetCenter (void) |
| Gets the center point of this BRotatedRect. | |
| BPoint | GetCenterLeft (void) |
| Gets the midpoint between the upper-left and lower-left corners of this BRotatedRect. | |
| BPoint | GetCenterRight (void) |
| Gets the midpoint between the upper-right and lower-right corners of this BRotatedRect. | |
| BPoint | GetLowerCenter (void) |
| Gets the midpoint between the lower-left and lower-right corners of this BRotatedRect. | |
| BPoint | GetLowerLeft (void) |
| Gets the lower-left corner of this BRotatedRect. | |
| BPoint | GetLowerRight (void) |
| Gets the lower-right corner of this BRotatedRect. | |
| BPoint | GetUpperCenter (void) |
| Gets the midpoint between the upper-left and upper-right corners of this BRotatedRect. | |
| BPoint | GetUpperLeft (void) |
| Gets the upper-left corner of this BRotatedRect. | |
| BPoint | GetUpperRight (void) |
| Gets the upper-right corner of this BRotatedRect. | |
| BRotatedRect | ( | const BRect & | rBounds, | |
| const double | dAngle, | |||
| const double | dHeight | |||
| ) |
Constructs a BRotatedRect and calculates the four points associated with the rectangle's corners.
This routine assumes that the rectangle has been rotated around its upper-left corner.
| rBounds | The minimum bounding rectangle for the rotated rectangle. | |
| dAngle | The angle by which the rectangle has been rotated, in radians. | |
| dHeight | The length of the side of the rotated rectangle connecting the upper-left corner to the lower-left corner. |
| BPoint GetCenter | ( | void | ) | [inline] |
| BPoint GetCenterLeft | ( | void | ) | [inline] |
Gets the midpoint between the upper-left and lower-left corners of this BRotatedRect.
| BPoint GetCenterRight | ( | void | ) | [inline] |
Gets the midpoint between the upper-right and lower-right corners of this BRotatedRect.
| BPoint GetLowerCenter | ( | void | ) | [inline] |
Gets the midpoint between the lower-left and lower-right corners of this BRotatedRect.
| BPoint GetLowerLeft | ( | void | ) | [inline] |
Gets the lower-left corner of this BRotatedRect.
| BPoint GetLowerRight | ( | void | ) | [inline] |
Gets the lower-right corner of this BRotatedRect.
| BPoint GetUpperCenter | ( | void | ) | [inline] |
Gets the midpoint between the upper-left and upper-right corners of this BRotatedRect.
| BPoint GetUpperLeft | ( | void | ) | [inline] |
Gets the upper-left corner of this BRotatedRect.
| BPoint GetUpperRight | ( | void | ) | [inline] |
Gets the upper-right corner of this BRotatedRect.