From b18647916faf5feb9efd0a54facd2dbe8a4e9892 Mon Sep 17 00:00:00 2001 From: Tsukinai Date: Fri, 24 May 2019 12:00:11 -0600 Subject: [PATCH] Added ZR for zero rect Added the ZR for rectangle for both utility and consistensy with pixel.ZV --- geometry.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geometry.go b/geometry.go index 42fe018..0c16b99 100644 --- a/geometry.go +++ b/geometry.go @@ -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.