Constructor Summary
Public Constructor | ||
public |
constructor(tag: String, duration: Number, points: Array<misc.Point>) |
Method Summary
Public Methods | ||
public |
clone(): misc.Polygon Clone a polygon |
|
public |
|
|
public |
|
|
public |
|
|
public |
Rotate all points of polygon around an origin point |
|
public |
rotateAroundZero(angleDegrees: Number): misc.Polygon Optimized algorithm for polygon rotation around coordinate beginning |
|
public |
translate(translatePoint: misc.Point): * Translate all points of polygon |
Public Constructors
Public Methods
public rotate(originPoint: misc.Point, angleDegrees: Number): * source
Rotate all points of polygon around an origin point
Params:
Name | Type | Attribute | Description |
originPoint | misc.Point | Center point of rotation |
|
angleDegrees | Number | Required angle of rotation |
Return:
* |
public rotateAroundZero(angleDegrees: Number): misc.Polygon source
Optimized algorithm for polygon rotation around coordinate beginning
Params:
Name | Type | Attribute | Description |
angleDegrees | Number |
Return:
misc.Polygon |
public translate(translatePoint: misc.Point): * source
Translate all points of polygon
Params:
Name | Type | Attribute | Description |
translatePoint | misc.Point | Point which represents x and y value of translation |
Return:
* |