UNPKG

@phaserjs/phaser

Version:
4 lines (3 loc) 82 B
export function GetVec2Angle(a, b) { return Math.atan2(b.y - a.y, b.x - a.x); }