From f24d4658080d4b1e5205df96cb7e59a1428cb647 Mon Sep 17 00:00:00 2001 From: Sergio Vera Date: Thu, 24 Oct 2019 10:29:11 +0200 Subject: [PATCH] Fixed a couple of errors in methods comments --- geometry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.go b/geometry.go index f3709c2..5cbb906 100644 --- a/geometry.go +++ b/geometry.go @@ -622,7 +622,7 @@ func (r Rect) Intersect(s Rect) Rect { return t } -// IntersectCircle returns a minimal required Vector, such that moving the circle by that vector would stop the Circle +// IntersectCircle returns a minimal required Vector, such that moving the rect by that vector would stop the Circle // and the Rect intersecting. This function returns a zero-vector if the Circle and Rect do not overlap, and if only // the perimeters touch. // @@ -830,7 +830,7 @@ func (c Circle) Intersect(d Circle) Circle { } } -// IntersectLine will return the shortest Vec such that if the Rect is moved by the Vec returned, the Line and Rect no +// IntersectLine will return the shortest Vec such that if the Circle is moved by the Vec returned, the Line and Rect no // longer intersect. func (c Circle) IntersectLine(l Line) Vec { return l.IntersectCircle(c).Scaled(-1)