phaser/wip/vec2/Reciprocal.js

13 lines
189 B
JavaScript
Raw Normal View History

2017-02-04 04:41:17 +00:00
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;
}