2024-01-22 01:25:19 +00:00
|
|
|
local v2 = Vector2.new(1, 3)
|
|
|
|
local v3 = Vector3.new(-10, 30, 50)
|
|
|
|
local v4 = Vector4.new(50, 30, 10, -1000)
|
2024-01-21 03:28:07 +00:00
|
|
|
|
2024-01-22 03:17:30 +00:00
|
|
|
local function InspectVectorTable(Vector: {[string]: number})
|
|
|
|
local aye: {string} = {"{"}
|
|
|
|
for k,v in Vector do
|
|
|
|
table.insert(aye, `{tostring(k)}={tostring(v)}`)
|
|
|
|
end
|
|
|
|
table.insert(aye, "}")
|
|
|
|
return table.concat(aye, " ")
|
|
|
|
end
|
|
|
|
|
2024-01-22 01:25:19 +00:00
|
|
|
print("----StrafeLua----")
|
2024-01-22 20:05:08 +00:00
|
|
|
warn(_VERSION)
|
|
|
|
print(`Vector2=\t{InspectVectorTable(v2)}`)
|
|
|
|
print(`Vector3=\t{InspectVectorTable(v3)}`)
|
|
|
|
print(`Vector4=\t{InspectVectorTable(v4)}`)
|
|
|
|
print(`Vector2.ZERO=\t{InspectVectorTable(Vector2.ZERO)}`)
|
|
|
|
print(`Vector2.ONE=\t{InspectVectorTable(Vector2.ONE)}`)
|
|
|
|
print(`Vector2.NEG_ZERO=\t{InspectVectorTable(Vector2.NEG_ZERO)}`)
|
|
|
|
print(`Vector2.NEG_ONE=\t{InspectVectorTable(Vector2.NEG_ONE)}`)
|
|
|
|
print(`Vector2.NEG_X=\t{InspectVectorTable(Vector2.NEG_X)}`)
|
|
|
|
print(`Vector2.NEG_Y=\t{InspectVectorTable(Vector2.NEG_Y)}`)
|
|
|
|
print(`Vector3.ZERO=\t{InspectVectorTable(Vector3.ZERO)}`)
|
|
|
|
print(`Vector3.ONE=\t{InspectVectorTable(Vector3.ONE)}`)
|
|
|
|
print(`Vector3.NEG_ZERO=\t{InspectVectorTable(Vector3.NEG_ZERO)}`)
|
|
|
|
print(`Vector3.NEG_ONE=\t{InspectVectorTable(Vector3.NEG_ONE)}`)
|
|
|
|
print(`Vector3.NEG_X=\t{InspectVectorTable(Vector3.NEG_X)}`)
|
|
|
|
print(`Vector3.NEG_Y=\t{InspectVectorTable(Vector3.NEG_Y)}`)
|
|
|
|
print(`Vector4.ZERO=\t{InspectVectorTable(Vector4.ZERO)}`)
|
|
|
|
print(`Vector4.ONE=\t{InspectVectorTable(Vector4.ONE)}`)
|
|
|
|
print(`Vector4.NEG_ZERO=\t{InspectVectorTable(Vector4.NEG_ZERO)}`)
|
|
|
|
print(`Vector4.NEG_ONE=\t{InspectVectorTable(Vector4.NEG_ONE)}`)
|
|
|
|
print(`Vector4.NEG_X=\t{InspectVectorTable(Vector4.NEG_X)}`)
|
|
|
|
print(`Vector4.NEG_Y=\t{InspectVectorTable(Vector4.NEG_Y)}`)
|
|
|
|
print("-----------------")
|
|
|
|
print(`No args Vector2.new=\t{InspectVectorTable(Vector2.new())}`)
|
|
|
|
print(`No args Vector3.new=\t{InspectVectorTable(Vector3.new())}`)
|
|
|
|
print(`No args Vector4.new=\t{InspectVectorTable(Vector4.new())}`)
|
2024-01-22 01:25:19 +00:00
|
|
|
print("-----------------")
|