Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteArena/box2d
/ B2Vec2Distance
Function
B2Vec2Distance
CommonB2Math.go:543–545 ·
view source on GitHub ↗
(a, b B2Vec2)
Source
from the content-addressed store, hash-verified
541
}
542
543
func
B2Vec2Distance(a, b B2Vec2) float64 {
544
return
B2Vec2Sub(a, b).Length()
545
}
546
547
func
B2Vec2DistanceSquared(a, b B2Vec2) float64 {
548
c := B2Vec2Sub(a, b)
Callers
3
GetMetric
Method · 0.85
B2Distance
Function · 0.85
Initialize
Method · 0.85
Calls
2
B2Vec2Sub
Function · 0.85
Length
Method · 0.80
Tested by
no test coverage detected