1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-20 02:54:04 +00:00

Fix return type of Vector.dot

Closes #1932
This commit is contained in:
Jonathan Coates
2024-08-11 14:11:14 +01:00
parent be59f1a875
commit 9484315d37

View File

@@ -114,7 +114,7 @@ local vector = {
-- --
-- @tparam Vector self The first vector to compute the dot product of. -- @tparam Vector self The first vector to compute the dot product of.
-- @tparam Vector o The second vector to compute the dot product of. -- @tparam Vector o The second vector to compute the dot product of.
-- @treturn Vector The dot product of `self` and `o`. -- @treturn number The dot product of `self` and `o`.
-- @usage v1:dot(v2) -- @usage v1:dot(v2)
dot = function(self, o) dot = function(self, o)
if getmetatable(self) ~= vmetatable then expect(1, self, "vector") end if getmetatable(self) ~= vmetatable then expect(1, self, "vector") end