phaser/src/geom/triangle/CopyFrom.js
2018-03-27 15:27:08 +02:00

25 lines
671 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* [description]
*
* @function Phaser.Geom.Triangle.CopyFrom
* @since 3.0.0
*
* @generic {Phaser.Geom.Triangle} O - [dest,$return]
*
* @param {Phaser.Geom.Triangle} source - [description]
* @param {Phaser.Geom.Triangle} dest - [description]
*
* @return {Phaser.Geom.Triangle} [description]
*/
var CopyFrom = function (source, dest)
{
return dest.setTo(source.x1, source.y1, source.x2, source.y2, source.x3, source.y3);
};
module.exports = CopyFrom;