Clarified comment
This commit is contained in:
parent
98d5b9b417
commit
a1d36f8c7e
|
@ -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
|
// 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) {
|
func (l Line) Formula() (m, b float64) {
|
||||||
// Account for horizontal lines
|
// Account for horizontal lines
|
||||||
if l.B.Y == l.A.Y {
|
if l.B.Y == l.A.Y {
|
||||||
|
|
Loading…
Reference in New Issue