meetuparchive / archery

2D R-Tree implementation in Scala
MIT License
117 stars 26 forks source link

Add Box(Point, Point) constructor #18

Open non opened 9 years ago

non commented 9 years ago

Right now Box instances are created with four Float values, e.g. Box(x, y, x2, y2).

This is the most efficient way to do it, but requires the user to keep the order of the arguments straight. For uses where clarity is valued over efficiency, it would be nice to support a constructor like Box(Point(x, y), Point(x2, y2)).