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

Method to_Vec2

examples/extra/vector2_extended.py:26–30  ·  view source on GitHub ↗

Cast Vector2 to Vec2.

(v: Vector2)

Source from the content-addressed store, hash-verified

24
25 @staticmethod
26 def to_Vec2(v: Vector2):
27 """
28 Cast Vector2 to Vec2.
29 """
30 return Vector2Ex(v.x, v.y)
31
32 def __repr__(self) -> str:
33 return f"{self.x}, {self.y}"

Callers 12

__mul__Method · 0.95
__truediv__Method · 0.95
clampMethod · 0.95
clamp_valueMethod · 0.95
invertMethod · 0.95
lerpMethod · 0.95
move_towardsMethod · 0.95
negateMethod · 0.95
normalizeMethod · 0.95
reflectMethod · 0.95
rotateMethod · 0.95
transformMethod · 0.95

Calls 1

Vector2ExClass · 0.85

Tested by

no test coverage detected