Skip to content

five-on-it / apps/client/src/gui/radio-wheel / wheelChoice

Function: wheelChoice() ​

wheelChoice(dx, dy, count, dead): number | undefined

Defined in: apps/client/src/gui/radio-wheel.ts:89

The slot a direction from the wheel's centre points at (dx right, dy down, px), of count slots round it, the first at the top; none within dead px of the centre.

Parameters ​

dx ​

number

dy ​

number

count ​

number

dead ​

number

Returns ​

number | undefined