added tests to some test cases

This commit is contained in:
sm
2014-01-07 22:12:25 -08:00
parent 7c28ca3ca9
commit d8e3dd04a4
2 changed files with 28 additions and 32 deletions
+1
View File
@@ -106,6 +106,7 @@ func IntervalDistance(p1min, p1max, p2min, p2max float32) float32 {
}
}
// returns intersect, will intersect, translation.Scale(minimum_interval_distance)
func PolyPolyIntersection(p1 Polygon2d, v1 Vector2d, p2 Polygon2d) (bool, bool, Vector2d) {
// p1 is moving v1, p2 is stationary
intersect := true