mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 20:43:26 +00:00
12 lines
189 B
JavaScript
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;
|
|
|
|
}
|