UNPKG

s2ts

Version:

A tool to automatically compile counter-strike TS files (.vts files)

6 lines (5 loc) 229 B
const Vector = (x, y, z) => ({ x, y, z }); Vector.zero = { x: 0, y: 0, z: 0 }; Vector.format = (vector) => `${vector.x} ${vector.y} ${vector.z}`; Vector.add = (a, b) => Vector(a.x + b.x, a.y + b.y, a.z + b.z); export { Vector };