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

Method equal

contents/jarvis_march/code/go/jarvis.go:23–25  ·  view source on GitHub ↗
(o point)

Source from the content-addressed store, hash-verified

21}
22
23func (p point) equal(o point) bool {
24 return p.x == o.x && p.y == o.y
25}
26
27func counterClockWise(p1, p2, p3 point) bool {
28 return (p3.y-p1.y)*(p2.x-p1.x) >= (p2.y-p1.y)*(p3.x-p1.x)

Callers 1

jarvisMarchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected