mirror of
https://github.com/photonstorm/phaser
synced 2025-01-26 03:45:08 +00:00
25 lines
671 B
JavaScript
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;
|