five-on-it / apps/client/src/ui/minimap-data / waypointArrow
Function: waypointArrow()
waypointArrow(
me,waypoint,half,size): {angle:number;x:number;y:number; } |undefined
Defined in: apps/client/src/ui/minimap-data.ts:180
Where the waypoint's arrow stands on a map's edge and where it points (rad, on the canvas, 0 along +x of the canvas): on the border, from the map's centre, the way from the player to the waypoint; undefined with the player on it.
Parameters
me
x
number
z
number
waypoint
x
number
z
number
half
number
size
number
Returns
{ angle: number; x: number; y: number; } | undefined