This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
raylib-python-cffi/tests/xtest_raymath.py
2022-08-11 21:58:54 +01:00

12 lines
No EOL
240 B
Python

"""
This shows how to use the Pyray wrapper around the static binding.
"""
import pyray as pr
v1 = pr.Vector2(10,10)
v2 = pr.Vector2(20,20)
v3 = pr.vector2_add(v1, v2)
print(v3.x, v3.y)
v4 = pr.vector2_normalize((20,10))
print(v4.x, v4.y)