fixed index issue

This commit is contained in:
Ben Cragg 2019-04-04 16:20:21 +01:00
parent 0092d6a577
commit 9eb2834a10
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ func (r Rect) IntersectionPoints(l Line) []Vec {
// Order the points // Order the points
if len(points) == 2 { if len(points) == 2 {
if points[1].To(l.A).Len() < points[0].To(l.A).Len() { if points[1].To(l.A).Len() < points[0].To(l.A).Len() {
return []Vec{points[1], points[2]} return []Vec{points[1], points[0]}
} }
} }