mirror of
https://github.com/photonstorm/phaser
synced 2024-12-21 02:23:29 +00:00
13 lines
189 B
JavaScript
13 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;
|
||
|
|
||
|
}
|