Renamed method to setFromEuler

This commit is contained in:
Richard Davey 2020-09-30 11:23:01 +01:00
parent 3b8c78cca2
commit c299c9e108

View file

@ -784,7 +784,7 @@ var Quaternion = new Class({
/** /**
* Set this Quaternion from the given Euler, based on Euler order. * 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 * @since 3.50.0
* *
* @param {Phaser.Math.Euler} euler - The Euler to convert from. * @param {Phaser.Math.Euler} euler - The Euler to convert from.
@ -792,7 +792,7 @@ var Quaternion = new Class({
* *
* @return {Phaser.Math.Quaternion} This Quaternion. * @return {Phaser.Math.Quaternion} This Quaternion.
*/ */
fromEuler: function (euler, update) setFromEuler: function (euler, update)
{ {
var x = euler.x / 2; var x = euler.x / 2;
var y = euler.y / 2; var y = euler.y / 2;