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
true
if they are equal, else returnfalse
Parameters:
Name Type Description a
PolyLinePoint b
PolyLinePoint 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 string
string 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 x
number horizontal coordinate of the PolyLine point
y
number vertical coordinate of the PolyLine point