2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2022-02-28 14:29:51 +00:00
|
|
|
* @copyright 2022 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2018-02-12 16:01:20 +00:00
|
|
|
*/
|
|
|
|
|
2017-10-13 13:11:54 +00:00
|
|
|
/**
|
2018-06-21 17:42:40 +00:00
|
|
|
* Copy the values of one line to a destination line.
|
2017-10-13 13:11:54 +00:00
|
|
|
*
|
|
|
|
* @function Phaser.Geom.Line.CopyFrom
|
|
|
|
* @since 3.0.0
|
|
|
|
*
|
2018-03-27 13:27:08 +00:00
|
|
|
* @generic {Phaser.Geom.Line} O - [dest,$return]
|
|
|
|
*
|
2018-06-21 17:42:40 +00:00
|
|
|
* @param {Phaser.Geom.Line} source - The source line to copy the values from.
|
|
|
|
* @param {Phaser.Geom.Line} dest - The destination line to copy the values to.
|
2017-10-13 13:11:54 +00:00
|
|
|
*
|
2018-06-21 17:42:40 +00:00
|
|
|
* @return {Phaser.Geom.Line} The destination line.
|
2017-10-13 13:11:54 +00:00
|
|
|
*/
|
2017-01-05 00:20:11 +00:00
|
|
|
var CopyFrom = function (source, dest)
|
|
|
|
{
|
|
|
|
return dest.setTo(source.x1, source.y1, source.x2, source.y2);
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = CopyFrom;
|