phaser/v3/merge/vec2/Reciprocal.js
2017-08-08 17:16:23 +01: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;
}