A Vector3 class
Can be used to create 3d games & 2d games (use 3rd coordinate as depth)
I use this in gmod, luvit, love2d
local mins = Vector(13, 50)
mins.abscissa = 17 -- alias support
mins.ord = 53
local maxs = Vector(75, 25)
maxs.x = 46
maxs[2] = 28
print(
"from incredible-gmod.ru with <3",
"\n\t".. mins,
"\n\t meta events: ".. mins + (maxs - mins) * 0.5,
"\n\t 5.3 events support (even in lua 5.1): ".. #mins,
"\n\t normal: ".. mins:GetNormal(),
"\n\t distance: ".. mins:Distance(maxs),
"\n\t distance to square: ".. mins:DistanceToSqr(maxs),
"\n\t dot product: ".. mins:Dot(maxs),
"\n\t angle: ".. mins:Angle(maxs),
"\n\t lerp: ".. mins:Lerp(0.5, maxs),
"\n\t approach: ".. mins:Approach(50, maxs),
"\nand alot of more useful things!"
)