Tools
Coordinates formatter
Paste a vector3 or vector4 in nearly any shape, one per line, and get it back as a Lua vec, a Lua table, JSON or plain numbers, rounded to the decimals you choose. The heading can be called h, w or heading.
Examples: vec3(1.5, 2, 3), {x=1.5,y=2,z=3,w=90}, 1.5, 2, 3, 90.
Runs entirely in your browser. Nothing you type is sent to us.
Lua vec3 / vec4
vec4(-1052.31, -2750.5, 13.94, 90) vec3(1.5, 2, 3) vec4(10, 20, 30, 45)
Lua table
{ x = -1052.31, y = -2750.5, z = 13.94, h = 90 }
{ x = 1.5, y = 2, z = 3 }
{ x = 10, y = 20, z = 30, h = 45 }JSON
{"x":-1052.31,"y":-2750.5,"z":13.94,"h":90}
{"x":1.5,"y":2,"z":3}
{"x":10,"y":20,"z":30,"h":45}Plain x, y, z, h
-1052.31, -2750.5, 13.94, 90 1.5, 2, 3 10, 20, 30, 45