Skip to content

Commit

Permalink
Fix confusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed Oct 13, 2023
1 parent 8ca62f2 commit d9d5f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geom/line.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (ln line) intersectLine(other line) lineWithLineIntersection {
return lineWithLineIntersection{empty: true}
}

// onSegement checks if point r is on the segment formed by p and q (which
// should all be collinear).
// onSegement checks if point r is on the segment formed by p and q (all 3
// points should be collinear).
func onSegment(p XY, q XY, r XY) bool {
return r.X <= fastMax(p.X, q.X) &&
r.X >= fastMin(p.X, q.X) &&
Expand Down

0 comments on commit d9d5f64

Please sign in to comment.