Added optional Float32Array

This commit is contained in:
Richard Davey 2022-12-27 18:25:36 +00:00
parent 463b602608
commit 129033a306

View file

@ -920,12 +920,14 @@ var TransformMatrix = new Class({
* @param {number} xw - The xw value.
* @param {number} yh - The yh value.
* @param {boolean} roundPixels - Pass the results via Math.round?
* @param {Float32Array} [quad] - Optional Float32Array to store the results in. Otherwises uses the local quad array.
*
* @return {Float32Array} The quad Float32Array.
*/
setQuad: function (x, y, xw, yh, roundPixels)
setQuad: function (x, y, xw, yh, roundPixels, quad)
{
var quad = this.quad;
if (quad === undefined) { quad = this.quad; }
var matrix = this.matrix;
var a = matrix[0];