docs changes
changed wording to match zero-vector returns in other functions.
This commit is contained in:
parent
285676ca17
commit
ba6fc7db8a
|
@ -608,7 +608,7 @@ func (r Rect) Union(s Rect) Rect {
|
||||||
|
|
||||||
// Intersect returns the maximal Rect which is covered by both r and s. Rects r and s must be normalized.
|
// Intersect returns the maximal Rect which is covered by both r and s. Rects r and s must be normalized.
|
||||||
//
|
//
|
||||||
// If r and s don't overlap, this function returns a ZR.
|
// If r and s don't overlap, this function returns a zero-rectangle.
|
||||||
func (r Rect) Intersect(s Rect) Rect {
|
func (r Rect) Intersect(s Rect) Rect {
|
||||||
t := R(
|
t := R(
|
||||||
math.Max(r.Min.X, s.Min.X),
|
math.Max(r.Min.X, s.Min.X),
|
||||||
|
|
Loading…
Reference in New Issue