This method handles single points as well as LineStrings. LineStrings are assumed
not to be closed (the function will not fail for closed lines, but will generate superfluous line caps).
-
Parameters:
-
inputPts - inputPts the vertices of the line to offset
-
distance - distance the offset distance
-
Returns:
-
a Coordinate array representing the curve or null if the curve is empty