mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Added optional Float32Array
This commit is contained in:
parent
463b602608
commit
129033a306
1 changed files with 4 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue