mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
delete vxld() in vector3.lua
This commit is contained in:
parent
52f38242af
commit
3caad4200d
1 changed files with 0 additions and 13 deletions
|
|
@ -160,19 +160,6 @@ function vector3:abtw(vector)
|
|||
return math.acos(dot_prod / len_prod)
|
||||
end
|
||||
|
||||
|
||||
-- exclude vector3
|
||||
-- @param vector {vec3}
|
||||
-- @return {vec3}
|
||||
function vector3:vxld(vector)
|
||||
if type(vector) == "number" then
|
||||
print("\n(( TypeError : vxld(vec3) ))\nType arg vxld(vec3, vec3)")
|
||||
error("Invalid input argument. Expected a vector3 object")
|
||||
end
|
||||
return vector3:new(self.x - vector.x, self.y - vector.y, self.z - vector.z)
|
||||
end
|
||||
|
||||
|
||||
-- rot vec3
|
||||
-- @param angle {number} -> float || int
|
||||
-- @param axis {string} .. if nil => rot axis z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue