@alexbol99/collision_distance

1.0.8 • Public • Published

collision_distance

Algorithm to calculate one-dimensional collision distance between two shapes

Let we have 2 not intersecting arbitrary polygons A and B in 2-d plane so that x-distance between two bounding boxes is d > 0. We want to find minimal translation vector t(x,0) so that polygon B after translation will collide with polygon A at least in one point.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.8
    2
    • latest

Version History

Package Sidebar

Install

npm i @alexbol99/collision_distance

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

31.4 kB

Total Files

10

Last publish

Collaborators

  • alexbol99