Intersection
Details
A box is defined via x, y, w and h as
y │ ┌───w───┐ │ │ ┌───┼──┐ │ h │▓▓▓│ │ │ │ │▓▓▓│ │ │ o───┼───┘ │ │ o──────┘ └───────────────x (0,0)
Compute the intersection area between two boxes given as
x1 y1 w1 h1 x2 y2 w2 h2
0 bytes, 0 chars
Restore solution
Compiled from
AT&T syntax to x86-64 Linux. Use
syscalls to write output.
Fennel is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
ctrl + enter or