MCPcopy 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
543func B2Vec2Distance(a, b B2Vec2) float64 {
544 return B2Vec2Sub(a, b).Length()
545}
546
547func B2Vec2DistanceSquared(a, b B2Vec2) float64 {
548 c := B2Vec2Sub(a, b)

Callers 3

GetMetricMethod · 0.85
B2DistanceFunction · 0.85
InitializeMethod · 0.85

Calls 2

B2Vec2SubFunction · 0.85
LengthMethod · 0.80

Tested by

no test coverage detected