Added ZR for zero rect
Added the ZR for rectangle for both utility and consistensy with pixel.ZV
This commit is contained in:
parent
de3617a259
commit
b18647916f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue