phaser/v3/merge/vec2/PerpDot.js
2017-08-08 17:16:23 +01:00

5 lines
79 B
JavaScript

export default function (a, b) {
return (a[0] * b[1]) - (a[1] * b[0]);
}