├── .github └── workflows │ └── go.yml ├── .gitignore ├── LICENSE ├── README.md ├── arbiter.go ├── arbiter_test.go ├── bb.go ├── bbtree.go ├── bbtree_test.go ├── body.go ├── body_test.go ├── circle.go ├── collision.go ├── constraint.go ├── contactbuffer.go ├── dampedrotaryspring.go ├── dampedspring.go ├── debug.go ├── draw.go ├── everything.go ├── gearjoint.go ├── go.mod ├── groovejoint.go ├── hashset.go ├── hashset_arbiter.go ├── march.go ├── pinjoint.go ├── pivotjoint.go ├── poly.go ├── polyline.go ├── ratchetjoint.go ├── release.go ├── rotarylimitjoint.go ├── segment.go ├── shape.go ├── shape_test.go ├── simplemotor.go ├── slidejoint.go ├── space.go ├── space_test.go ├── spacehash.go ├── spatialindex.go ├── transform.go ├── vector.go └── vector_test.go /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.test 3 | *.out 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/README.md -------------------------------------------------------------------------------- /arbiter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/arbiter.go -------------------------------------------------------------------------------- /arbiter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/arbiter_test.go -------------------------------------------------------------------------------- /bb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/bb.go -------------------------------------------------------------------------------- /bbtree.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/bbtree.go -------------------------------------------------------------------------------- /bbtree_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/bbtree_test.go -------------------------------------------------------------------------------- /body.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/body.go -------------------------------------------------------------------------------- /body_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/body_test.go -------------------------------------------------------------------------------- /circle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/circle.go -------------------------------------------------------------------------------- /collision.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/collision.go -------------------------------------------------------------------------------- /constraint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/constraint.go -------------------------------------------------------------------------------- /contactbuffer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/contactbuffer.go -------------------------------------------------------------------------------- /dampedrotaryspring.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/dampedrotaryspring.go -------------------------------------------------------------------------------- /dampedspring.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/dampedspring.go -------------------------------------------------------------------------------- /debug.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/debug.go -------------------------------------------------------------------------------- /draw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/draw.go -------------------------------------------------------------------------------- /everything.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/everything.go -------------------------------------------------------------------------------- /gearjoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/gearjoint.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jakecoffman/cp/v2 2 | 3 | go 1.22 4 | -------------------------------------------------------------------------------- /groovejoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/groovejoint.go -------------------------------------------------------------------------------- /hashset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/hashset.go -------------------------------------------------------------------------------- /hashset_arbiter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/hashset_arbiter.go -------------------------------------------------------------------------------- /march.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/march.go -------------------------------------------------------------------------------- /pinjoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/pinjoint.go -------------------------------------------------------------------------------- /pivotjoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/pivotjoint.go -------------------------------------------------------------------------------- /poly.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/poly.go -------------------------------------------------------------------------------- /polyline.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/polyline.go -------------------------------------------------------------------------------- /ratchetjoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/ratchetjoint.go -------------------------------------------------------------------------------- /release.go: -------------------------------------------------------------------------------- 1 | //go:build !debug 2 | 3 | package cp 4 | 5 | func assert(_ bool, _ ...any) {} 6 | -------------------------------------------------------------------------------- /rotarylimitjoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/rotarylimitjoint.go -------------------------------------------------------------------------------- /segment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/segment.go -------------------------------------------------------------------------------- /shape.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/shape.go -------------------------------------------------------------------------------- /shape_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/shape_test.go -------------------------------------------------------------------------------- /simplemotor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/simplemotor.go -------------------------------------------------------------------------------- /slidejoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/slidejoint.go -------------------------------------------------------------------------------- /space.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/space.go -------------------------------------------------------------------------------- /space_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/space_test.go -------------------------------------------------------------------------------- /spacehash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/spacehash.go -------------------------------------------------------------------------------- /spatialindex.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/spatialindex.go -------------------------------------------------------------------------------- /transform.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/transform.go -------------------------------------------------------------------------------- /vector.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/vector.go -------------------------------------------------------------------------------- /vector_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakecoffman/cp/HEAD/vector_test.go --------------------------------------------------------------------------------