phaser/v3/src/geom/line/Slope.js

7 lines
112 B
JavaScript
Raw Normal View History

2017-01-04 00:21:42 +00:00
var Slope = function (line)
{
return (line.y2 - line.y1) / (line.x2 - line.x1);
};
module.exports = Slope;