phaser/wip/vec2/Reciprocal.js
2018-01-09 22:12:16 +00:00

12 lines
189 B
JavaScript

let vec2 = Float32Array;
export function reciprocal (a, dst = new vec2(2)) {
// let rcp = VMath.reciprocal;
// dst[0] = rcp(a[0]);
// dst[1] = rcp(a[1]);
return dst;
}