Commit b0492327 authored by Robert Knight's avatar Robert Knight

Expand comments for `linesOverlap`

parent d07daebb
......@@ -26,9 +26,14 @@ export function rectIsEmpty(rect) {
}
/**
* Return true if the lines a-b and c-d overlap (ie. the length of their
* Return true if the 1D lines a-b and c-d overlap (ie. the length of their
* intersection is non-zero).
*
* For example, the following lines overlap:
*
* a----b
* c------d
*
* The inputs must be normalized such that b >= a and d >= c.
*
* @param {number} a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment