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

Method lerp

examples/extra/vector2_extended.py:146–148  ·  view source on GitHub ↗
(self, vec2, amount: float)

Source from the content-addressed store, hash-verified

144 return vector2_length_sqr(self)
145
146 def lerp(self, vec2, amount: float):
147 res = vector2_lerp(self, vec2, amount)
148 return self.to_Vec2(res)
149
150 def move_towards(self, target_vec2, max_distance: float):
151 res = vector2_move_towards(self, target_vec2, max_distance)

Callers 1

Calls 1

to_Vec2Method · 0.95

Tested by

no test coverage detected