UNPKG

@phaserjs/phaser

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