Category talk:Wren-vector: Difference between revisions
Content added Content deleted
(Added source code for new 'Wren-vector' module.) |
(→Source code: Bug fix.) |
||
Line 265: | Line 265: | ||
dot(other) { |
dot(other) { |
||
if (!(other is Vector3)) Fiber.abort("Other must be a Vector3.") |
if (!(other is Vector3)) Fiber.abort("Other must be a Vector3.") |
||
return _x * other.x + _y * other.y + _z * |
return _x * other.x + _y * other.y + _z * other.z |
||
} |
} |
||