MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / main

Function main

contents/jarvis_march/code/go/jarvis.go:56–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func main() {
57 points := []point{{-5, 2}, {5, 7}, {-6, -12}, {-14, -14}, {9, 9},
58 {-1, -1}, {-10, 11}, {-6, 15}, {-6, -8}, {15, -9},
59 {7, -7}, {-2, -9}, {6, -5}, {0, 14}, {2, 8},
60 }
61
62 hullPoints := jarvisMarch(points)
63 fmt.Println("The hull points are:")
64
65 for _, p := range hullPoints {
66 fmt.Printf("x=%f y=%f\n", p.x, p.y)
67 }
68}

Callers

nothing calls this directly

Calls 1

jarvisMarchFunction · 0.70

Tested by

no test coverage detected