MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Line

Struct Line

math/geometry/straightlines.go:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13type Line struct {
14 P1, P2 Point
15}
16
17// Distance calculates the shortest distance between two points.
18func Distance(a, b *Point) float64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected