From c299c9e1087dc8d04251cc9b7c25a590e6e52a3f Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 30 Sep 2020 11:23:01 +0100 Subject: [PATCH] Renamed method to `setFromEuler` --- src/math/Quaternion.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/Quaternion.js b/src/math/Quaternion.js index 8f68f16f2..8129c8520 100644 --- a/src/math/Quaternion.js +++ b/src/math/Quaternion.js @@ -784,7 +784,7 @@ var Quaternion = new Class({ /** * Set this Quaternion from the given Euler, based on Euler order. * - * @method Phaser.Math.Quaternion#fromEuler + * @method Phaser.Math.Quaternion#setFromEuler * @since 3.50.0 * * @param {Phaser.Math.Euler} euler - The Euler to convert from. @@ -792,7 +792,7 @@ var Quaternion = new Class({ * * @return {Phaser.Math.Quaternion} This Quaternion. */ - fromEuler: function (euler, update) + setFromEuler: function (euler, update) { var x = euler.x / 2; var y = euler.y / 2;