separation1D
separation1D(a0, a1, b0, b1) ⇒ number
Returns a number representing overlap distance between two 1D line segments. Positive number indicates overlap, negative number indicates that segments do not overlap; 0 indicates that segments are touching.
Kind: global function
Param | Type |
---|---|
a0 | number |
a1 | number |
b0 | number |
b1 | number |