MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / clamp

Method clamp

examples/extra/vector2_extended.py:119–121  ·  view source on GitHub ↗
(self, min_vec2, max_vec2)

Source from the content-addressed store, hash-verified

117 return vector2_angle(self, vec2)
118
119 def clamp(self, min_vec2, max_vec2):
120 res = vector2_clamp(self, min_vec2, max_vec2)
121 return self.to_Vec2(res)
122
123 def clamp_value(self, min_val: float, max_val: float):
124 res = vector2_clamp_value(self, min_val, max_val)

Callers 2

set_sound_positionFunction · 0.80

Calls 1

to_Vec2Method · 0.95

Tested by

no test coverage detected