new module:PolyLinePoints(arropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arr |
Array |
<optional> |
array containing instances of PolyLinePoint |
Extends
- SmartArray
Classes
Members
-
string
-
get a string representation of this PolyLine
Methods
-
static parseFromString(string) → {PolyLinePoints}
-
parse PolyLine from string
Parameters:
Name Type Description string
string string in the PolyLine format (
x1,y1 x2,y2, x3,y3
)Returns:
PolyLinePoints -a new instance of PolyLinePoints created by parsing the string
-
append(point)
-
append a point
Parameters:
Name Type Description point
PolyLinePoint a new point
-
copy() → {PolyLinePoints}
-
get a deep copy of this object
Returns:
PolyLinePoints -
forEach(func)
-
wrapper for foreach on the PolyLine points
Parameters:
Name Type Description func
function function that will be called on each element