mirror of
https://github.com/photonstorm/phaser
synced 2025-01-14 06:03:59 +00:00
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
|
var Decompose = function (triangle, out)
|
||
|
{
|
||
|
if (out === undefined) { out = []; }
|
||
|
|
||
|
out.push({ x: triangle.x1, y: triangle.y1 });
|
||
|
out.push({ x: triangle.x2, y: triangle.y2 });
|
||
|
out.push({ x: triangle.x3, y: triangle.y3 });
|
||
|
|
||
|
return out;
|
||
|
};
|
||
|
|
||
|
module.exports = Decompose;
|