Clarified comment

This commit is contained in:
Ben Cragg 2019-04-03 12:16:27 +01:00
parent 98d5b9b417
commit a1d36f8c7e
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ func (l Line) Contains(v Vec) bool {
}
// Formula will return the values that represent the line in the formula: y = mx + b
// This function will return `math.Inf+, math.Inf-` for a vertical line.
func (l Line) Formula() (m, b float64) {
// Account for horizontal lines
if l.B.Y == l.A.Y {