BRotatedRect Class Reference

#include <BRotatedRect.h>

List of all members.


Detailed Description

A rectangle that has been rotated about its upper-left corner.

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.

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

BPoint GetCenter ( void   )  [inline]

Gets the center point of this BRotatedRect.

Returns:
The center point of this BRotatedRect.

BPoint GetCenterLeft ( void   )  [inline]

Gets the midpoint between the upper-left and lower-left corners of this BRotatedRect.

Returns:
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.

Returns:
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.

Returns:
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.

Returns:
The lower-left corner of this BRotatedRect.

BPoint GetLowerRight ( void   )  [inline]

Gets the lower-right corner of this BRotatedRect.

Returns:
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.

Returns:
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.

Returns:
The upper-left corner of this BRotatedRect.

BPoint GetUpperRight ( void   )  [inline]

Gets the upper-right corner of this BRotatedRect.

Returns:
The upper-right corner of this BRotatedRect.


The documentation for this class was generated from the following file:

GeoTranslate 5.0 From Blue Marble Geographics