Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
func
(p point) equal(o point) bool {
24
return
p.x == o.x && p.y == o.y
25
}
26
27
func
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
jarvisMarch
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected