forked from StrafesNET/strafe-client
Vector test and the test folder
This commit is contained in:
parent
5327b201c7
commit
fdf0205c98
6
tests/Vector.lua
Normal file
6
tests/Vector.lua
Normal file
@ -0,0 +1,6 @@
|
||||
type f64 = number
|
||||
type vec3 = (x: f64, y: f64, z: f64) -> {x: f64, y: f64, z: f64}
|
||||
local Vector3: vec3 = Vector3
|
||||
|
||||
local v3 = Vector3(-10, 30, 50)
|
||||
print((`{("\n"):rep(3)} x=%d,y=%d,z=%d {("\n"):rep(3)}`):format(v3.x, v3.y, v3.z))
|
Loading…
Reference in New Issue
Block a user