phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
26 lines (23 loc) • 691 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Copy the values of one Point to a destination Point.
*
* @function Phaser.Geom.Point.CopyFrom
* @since 3.0.0
*
* @generic {Phaser.Geom.Point} O - [dest,$return]
*
* @param {Phaser.Geom.Point} source - The source Point to copy the values from.
* @param {Phaser.Geom.Point} dest - The destination Point to copy the values to.
*
* @return {Phaser.Geom.Point} The destination Point.
*/
var CopyFrom = function (source, dest)
{
return dest.setTo(source.x, source.y);
};
module.exports = CopyFrom;