fix some typos

This commit is contained in:
Michal Štrba 2019-11-06 00:50:48 +01:00 committed by GitHub
parent 87299dc29b
commit e51d4a6676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ func (r Rect) Intersects(s Rect) bool {
s.Min.Y > r.Max.Y)
}
// 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.
//
@ -841,7 +841,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)