MCPcopy Create free account
hub / github.com/ByteArena/box2d / B2Vec2Clamp

Function B2Vec2Clamp

CommonB2Math.go:713–718  ·  view source on GitHub ↗
(a, low, high B2Vec2)

Source from the content-addressed store, hash-verified

711}
712
713func B2Vec2Clamp(a, low, high B2Vec2) B2Vec2 {
714 return B2Vec2Max(
715 low,
716 B2Vec2Min(a, high),
717 )
718}
719
720func B2FloatClamp(a, low, high float64) float64 {
721 return math.Max(

Callers

nothing calls this directly

Calls 2

B2Vec2MaxFunction · 0.85
B2Vec2MinFunction · 0.85

Tested by

no test coverage detected