6 lines
204 B
Lua
6 lines
204 B
Lua
local meta = FindMetaTable("Vector")
|
|
if not meta then return end
|
|
|
|
function meta:DistanceZSkew(vec, skew)
|
|
return math.sqrt((self.x - vec.x) ^ 2 + (self.y - vec.y) ^ 2 + ((self.z - vec.z) * skew) ^ 2)
|
|
end
|