phaser/wip/archived/vec2/PerpDot.js

5 lines
79 B
JavaScript

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