ae ~master (2024-01-05T13:09:51Z)
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
combinatorics
distribution
longmul
mixed_radix
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.