RotatedRectangleF
Classes
RotatedRectangleF
Constructors
Constructor
new RotatedRectangleF(
centerX?,
centerY?,
width?,
height?,
angle?): RotatedRectangleF;
Parameters
| Parameter | Type |
|---|---|
centerX? | number |
centerY? | number |
width? | number |
height? | number |
angle? | number |
Returns
Properties
angle
angle: number;
centerX
centerX: number;
centerY
centerY: number;
height
height: number;
width
width: number;
Accessors
bounds
Get Signature
get bounds(): RectangleF;
Gets the bounds of this rotated rectangle taking into account its rotation.
Returns
center
Get Signature
get center(): PointF;
Returns
Set Signature
set center(center): void;
Parameters
| Parameter | Type |
|---|---|
center | PointF |
Returns
void
location
Get Signature
get location(): PointF;
Returns
Set Signature
set location(location): void;
Parameters
| Parameter | Type |
|---|---|
location | PointF |
Returns
void
Methods
clone()
clone(): RotatedRectangleF;
Returns
contains()
contains(pt): boolean;
Parameters
| Parameter | Type |
|---|---|
pt | PointF |
Returns
boolean
equals()
equals(rect, tolerance?): boolean;
Parameters
| Parameter | Type |
|---|---|
rect | RotatedRectangleF |
tolerance? | number |
Returns
boolean
getBottomCenterPoint()
getBottomCenterPoint(): PointF;
Returns
getBottomLeftCorner()
getBottomLeftCorner(): PointF;
Returns
getBottomRightCorner()
getBottomRightCorner(): PointF;
Returns
getCornerByIndex()
getCornerByIndex(index): PointF;
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
getLeftCenterPoint()
getLeftCenterPoint(): PointF;