Added ZR for zero rect

Added the ZR for rectangle for both utility and consistensy with pixel.ZV
This commit is contained in:
Tsukinai 2019-05-24 12:00:11 -06:00
parent de3617a259
commit b18647916f
1 changed files with 3 additions and 0 deletions

View File

@ -479,6 +479,9 @@ type Rect struct {
Min, Max Vec
}
// ZR is a zero rectangle.
var ZR = Rect{Min:ZV, Max:ZV}
// R returns a new Rect with given the Min and Max coordinates.
//
// Note that the returned rectangle is not automatically normalized.