The TransformMatrix.setQuad method signature has changed slightly. The roundPixels parameter is now optional and defaults to false. Previously, you always had to set it.

This commit is contained in:
Richard Davey 2023-11-07 18:50:42 +00:00
parent 3e859bcfd3
commit 34f282397c

View file

@ -917,13 +917,14 @@ var TransformMatrix = new Class({
* @param {number} y - The y value.
* @param {number} xw - The xw value.
* @param {number} yh - The yh value.
* @param {boolean} roundPixels - Pass the results via Math.round?
* @param {boolean} [roundPixels=false] - 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, quad)
{
if (roundPixels === undefined) { roundPixels = false; }
if (quad === undefined) { quad = this.quad; }
var matrix = this.matrix;