Accept a destination array for transforms
This allows in-place transforms.
This commit is contained in:
@@ -2,10 +2,11 @@ goog.provide('ol.TransformFunction');
|
||||
|
||||
|
||||
/**
|
||||
* A transform function accepts an array of input coordinate values and an
|
||||
* optional dimension (default should be 2). The function transforms the
|
||||
* coordinate values and returns an array of the same length as the input.
|
||||
* A transform function accepts an array of input coordinate values, an optional
|
||||
* output array, and an optional dimension (default should be 2). The function
|
||||
* transforms the input coordinate values, populates the output array, and
|
||||
* returns the output array.
|
||||
*
|
||||
* @typedef {function(Array.<number>, number=): Array.<number>}
|
||||
* @typedef {function(Array.<number>, Array.<number>=, number=): Array.<number>}
|
||||
*/
|
||||
ol.TransformFunction;
|
||||
|
||||
Reference in New Issue
Block a user