add raymath
This commit is contained in:
parent
c876a41e11
commit
3ffa4cc549
5 changed files with 1341 additions and 14 deletions
12
tests/test_raymath.py
Normal file
12
tests/test_raymath.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
"""
|
||||
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)
|
Reference in a new issue