new module:PolyLinePoint(x, y)
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number | horizontal coordinate of the PolyLine point |
y |
number | vertical coordinate of the PolyLine point |
Members
-
string
-
return a string representation of this PolyLine point
Methods
-
static equals(a, b) → {boolean}
-
compare PolyLine points, return
trueif they are equal, else returnfalseParameters:
Name Type Description aPolyLinePoint bPolyLinePoint Returns:
boolean -
static parseFromString(string) → {PolyLinePoint}
-
create PolyLine from a comma separated string (e.g. from a string formatted like this: "x,y", for example "15,8")
Parameters:
Name Type Description stringstring string in the format "x,y" representing a point in the SVG PolyLine
Returns:
PolyLinePoint -newly created instance of PolyLinePoint
-
set(x, y)
-
change the coordinates of this point
Parameters:
Name Type Description xnumber horizontal coordinate of the PolyLine point
ynumber vertical coordinate of the PolyLine point