phaser/wip/point/Dot.js

18 lines
349 B
JavaScript
Raw Normal View History

2017-10-13 13:11:54 +00:00
/**
* [description]
*
* @function Phaser.Geom.Point.Dot
* @since 3.0.0
*
* @param {Phaser.Geom.Point} pointA - [description]
* @param {Phaser.Geom.Point} pointB - [description]
*
* @return {number} [description]
*/
2017-01-03 22:21:47 +00:00
var Dot = function (pointA, pointB)
{
return ((pointA.x * pointB.x) + (pointA.y * pointB.y));
};
module.exports = Dot;