pixi-wheels

isAngleInArc()

pixi-wheels


pixi-wheels / index / isAngleInArc

Function: isAngleInArc()

function isAngleInArc(
   angle: number, 
   start: number, 
   arc: number
): boolean;

Defined in: utils/angles.ts:39

Whether angle lies inside the arc that starts at start and sweeps clockwise (increasing) for arc degrees. The start edge is inclusive, the end edge exclusive, so every angle belongs to exactly one section.

Parameters#

ParameterType
anglenumber
startnumber
arcnumber

Returns#

boolean