Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NYPDK/cs2go
/ Dist
Method
Dist
main.go:29–31 ·
view source on GitHub ↗
(other Vector3)
Source
from the content-addressed store, hash-verified
27
}
28
29
func
(v Vector3) Dist(other Vector3) float32 {
30
return
float32(math.Abs(float64(v.X-other.X)) + math.Abs(float64(v.Y-other.Y)) + math.Abs(float64(v.Z-other.Z)))
31
}
32
33
type
Vector2
struct
{
34
X float32
Callers
1
getEntitiesInfo
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected