The isClockwise() function determines whether a given pair of angles represents a clockwise rotation or not, considering a start angle as the reference.
import { isClockwise } from 'mz-math';
const isClockwise1 = isClockwise(0, 90); // true
const isClockwise2 = isClockwise(90, 0); // false
const isClockwise3 = isClockwise(90, 270, 270); // false
The function signature is:
const isClockwise: (angle1Deg: number, angle2Deg: number, startAngleDeg?: number) => boolean;