rangeIntersection
See source codeFinds the intersection of two ranges.
function rangeIntersection(
a0: number,
a1: number,
b0: number,
b1: number
): [number, number] | null
Parameters
Name | Description |
---|---|
|
The start point in the A range |
|
The end point in the A range |
|
The start point in the B range |
|
The end point in the B range |
Returns
[number, number] | null
The intersection of the ranges, or null if no intersection
Prev
radiansToDegreesNext
refreshPage