From a1d36f8c7e7635a9f6bbbd8bf224a9c9d17ebc2e Mon Sep 17 00:00:00 2001 From: Ben Cragg Date: Wed, 3 Apr 2019 12:16:27 +0100 Subject: [PATCH] Clarified comment --- geometry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/geometry.go b/geometry.go index 73f4854..da8fb7e 100644 --- a/geometry.go +++ b/geometry.go @@ -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 {