Class RotatedRectangleF
Constructors
(constructor)(centerX, centerY, width, height, angle)
Constructs a new instance of the RotatedRectangleF class
Declaration
constructor(centerX?: number, centerY?: number, width?: number, height?: number, angle?: number);
Parameters
| Type |
Name |
Description |
| number |
centerX |
|
| number |
centerY |
|
| number |
width |
|
| number |
height |
|
| number |
angle |
|
Properties
angle
Declaration
Property Value
bounds
Gets the bounds of this rotated rectangle taking into account its rotation.
Declaration
get bounds(): RectangleF;
Property Value
| Type |
Description |
| RectangleF |
Gets the bounds of this rotated rectangle taking into account its rotation.
|
center
Declaration
get center(): PointF;
set center(center: PointF);
Property Value
centerX
Declaration
Property Value
centerY
Declaration
Property Value
height
Declaration
Property Value
location
Declaration
get location(): PointF;
set location(location: PointF);
Property Value
width
Declaration
Property Value
Methods
clone()
Declaration
clone(): RotatedRectangleF;
Returns
contains(pt)
Declaration
contains(pt: PointF): boolean;
Parameters
| Type |
Name |
Description |
| PointF |
pt |
|
Returns
equals(rect, tolerance)
Declaration
equals(rect: RotatedRectangleF, tolerance?: number): boolean;
Parameters
Returns
FromLTRB(left, top, right, bottom)
Declaration
static FromLTRB(left: number, top: number, right: number, bottom: number): RotatedRectangleF;
Parameters
| Type |
Name |
Description |
| number |
left |
|
| number |
top |
|
| number |
right |
|
| number |
bottom |
|
Returns
fromRectangleF(rectangle, angle)
Declaration
static fromRectangleF(rectangle: RectangleF, angle?: number): RotatedRectangleF;
Parameters
| Type |
Name |
Description |
| RectangleF |
rectangle |
|
| number |
angle |
|
Returns
getBottomCenterPoint()
Declaration
getBottomCenterPoint(): PointF;
Returns
getBottomLeftCorner()
Declaration
getBottomLeftCorner(): PointF;
Returns
getBottomRightCorner()
Declaration
getBottomRightCorner(): PointF;
Returns
getCornerByIndex(index)
Declaration
getCornerByIndex(index: number): PointF;
Parameters
| Type |
Name |
Description |
| number |
index |
|
Returns
getLeftCenterPoint()
Declaration
getLeftCenterPoint(): PointF;
Returns
getRectWithOffset(rectangle, offset)
Declaration
static getRectWithOffset(rectangle: RotatedRectangleF, offset: PointF): RotatedRectangleF;
Parameters
Returns
getRightCenterPoint()
Declaration
getRightCenterPoint(): PointF;
Returns
getSimplifiedObject()
Declaration
getSimplifiedObject(): {
centerX: number;
centerY: number;
width: number;
height: number;
angle: number;
};
Returns
| Type |
Description |
| {
centerX: number;
centerY: number;
width: number;
height: number;
angle: number;
} |
|
Declaration
getTransform(rectangle: RotatedRectangleF): Transform;
Parameters
Returns
getUpperCenterPoint()
Declaration
getUpperCenterPoint(): PointF;
Returns
getUpperLeftCorner()
Declaration
getUpperLeftCorner(): PointF;
Returns
getUpperRightCorner()
Declaration
getUpperRightCorner(): PointF;
Returns
intersect(a, b)
Declaration
static intersect(a: RotatedRectangleF, b: RotatedRectangleF): RotatedRectangleF;
Parameters
Returns
intersectsWith(rect)
Declaration
intersectsWith(rect: RotatedRectangleF): boolean;
Parameters
Returns
rotateAt(angle, center)
Declaration
rotateAt(angle: number, center: PointF): this;
Parameters
| Type |
Name |
Description |
| number |
angle |
|
| PointF |
center |
|
Returns
Declaration
setTransform(transform: Transform): void;
Parameters
Returns
toRectangleF()
Declaration
toRectangleF(): RectangleF;
Returns
toString()
Declaration
Returns
Declaration
transform(transform: Transform, center: PointF): void;
Parameters
Returns
Declaration
transformByMatrix(matrix: Matrix, deltaAngle?: number): RotatedRectangleF;
Parameters
| Type |
Name |
Description |
| Matrix |
matrix |
|
| number |
deltaAngle |
|
Returns
translate(x, y)
Declaration
translate(x: number, y: number): void;
Parameters
| Type |
Name |
Description |
| number |
x |
|
| number |
y |
|
Returns
union(a, b)
Declaration
static union(a: RotatedRectangleF, b: RotatedRectangleF): RotatedRectangleF;
Parameters
Returns
withoutAngle()
Declaration
withoutAngle(): RotatedRectangleF;
Returns