* @function Bounds.prototype.toArray * @description 边界对象的数组表示形式。 * @example * var bounds = new Bounds(-180,-90,100,80); * //array1 = [-180,-90,100,80]; * var array1 = bounds.toArray(); * //array1 = [-90,-180,80,100]; * var array2 = bounds.toArray(true); * @par
(reverseAxisOrder)
| 124 | * @returns {Array.<number>} left, bottom, right, top 数组。 |
| 125 | */ |
| 126 | toArray(reverseAxisOrder) { |
| 127 | if (reverseAxisOrder === true) { |
| 128 | return [this.bottom, this.left, this.top, this.right]; |
| 129 | } else { |
| 130 | return [this.left, this.bottom, this.right, this.top]; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * @function Bounds.prototype.toBBOX |
no outgoing calls
no test coverage detected