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)).
Right now
Box
instances are created with fourFloat
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))
.