Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
clamp
Method · 0.95
clamp_value
Method · 0.95
invert
Method · 0.95
lerp
Method · 0.95
move_towards
Method · 0.95
negate
Method · 0.95
normalize
Method · 0.95
reflect
Method · 0.95
rotate
Method · 0.95
transform
Method · 0.95
Calls
1
Vector2Ex
Class · 0.85
Tested by
no test coverage detected