Finds the intersection of two ranges.

function rangeIntersection(
  a0: number,
  a1: number,
  b0: number,
  b1: number
): [number, number] | null
Parameters
NameDescription

a0

number

The start point in the A range

a1

number

The end point in the A range

b0

number

The start point in the B range

b1

number

The end point in the B range

Returns
[number, number] | null

The intersection of the ranges, or null if no intersection

radiansToDegreesrefreshPage