Rotate coordinate by angle. coordinate is modified in place and returned by the function.
coordinate
angle
Example:
var coord = [7.85, 47.983333];var rotateRadians = Math.PI / 2; // 90 degreesol.coordinate.rotate(coord, rotateRadians);// coord is now [-47.983333, 7.85] Copy
var coord = [7.85, 47.983333];var rotateRadians = Math.PI / 2; // 90 degreesol.coordinate.rotate(coord, rotateRadians);// coord is now [-47.983333, 7.85]
Coordinate.
Angle in radian.
stable
Generated using TypeDoc
Rotate
coordinate
byangle
.coordinate
is modified in place and returned by the function.Example: