leaflet-tracksymbol.js
function(points, angle) {
    var result = [];
    for(var i=0;i<points.length;i+=2) {
      var x = points[i + 0] * this._size;
      var y = points[i + 1] * this._size;
      var pt = this._rotate([x, y], angle);
      result.push(pt[0]);
      result.push(pt[1]);
    }
    return result;
  }
function(points, angle) {
    var result = [];
    for(var i=0;i<points.length;i+=2) {
      var x = points[i + 0] * this._size;
      var y = points[i + 1] * this._size;
      var pt = this._rotate([x, y], angle);
      result.push(pt[0]);
      result.push(pt[1]);
    }
    return result;
  }
function ( points , angle ) { var result = [ ] ; for ( var i = 0 ; i < points . length ; i += 2 ) { var x = points [ i + 0 ] * this . _size ; var y = points [ i + 1 ] * this . _size ; var pt = this . _rotate ( [ x , y ] , angle ) ; result . push ( pt [ 0 ] ) ; result . push ( pt [ 1 ] ) ; } return result ; }
Rotates the given point-array around the angle. @method _rotateAllPoints @param points {Array} A point vector 2d. @param angle {Number} Angle for rotation [rad]. @return The rotated vector-array 2d.
Rotates the given point - array around the angle .