ae v0.0.3106 (2021-11-28T15:35:14Z)
Home
Dub
Repo
rangeIntersection
ae
utils
math
Length of intersection of two segments on a line, or 0 if they do not intersect.
T
rangeIntersection
(
T
)
(
T
a0
,
T
a1
,
T
b0
,
T
b1
)
Meta
Source
See Implementation
ae
utils
math
modules
distribution
longmul
aliases
eq
flipBits
ge
gt
le
lt
ne
functions
average
between
bitsFor
bound
compare
ilog2
isPowerOfTwo
itpl
maximize
minimize
nextPowerOfTwo
op
rangeIntersection
roundUpToPowerOfTwo
sign
sort2
sqr
sum
swapBytes
templates
TypeForBits
binary
unary
Length of intersection of two segments on a line, or 0 if they do not intersect.