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

Function B2FloatClamp

CommonB2Math.go:720–725  ·  view source on GitHub ↗
(a, low, high float64)

Source from the content-addressed store, hash-verified

718}
719
720func B2FloatClamp(a, low, high float64) float64 {
721 return math.Max(
722 low,
723 math.Min(a, high),
724 )
725}
726
727/// "Next Largest Power of 2
728/// Given a binary integer value x, the next largest power of 2 can be computed by a SWAR algorithm

Calls

no outgoing calls

Tested by

no test coverage detected