PilotGaea 2D O'view
    正在準備搜尋索引...

    函數 rotate

    • Rotate coordinate by angle. coordinate is modified in place and returned by the function.

      Example:

      var coord = [7.85, 47.983333];
      var rotateRadians = Math.PI / 2; // 90 degrees
      ol.coordinate.rotate(coord, rotateRadians);
      // coord is now [-47.983333, 7.85]
      

      參數

      • coordinate: Coordinate

        Coordinate.

      • angle: number

        Angle in radian.

      回傳 Coordinate

      Coordinate.

      stable