local K=require("\109\111\115\101\115")local r=require("\115\117\112\112\111\114\116\046\102\097\099\116\111\114\121")r.define("\118\101\099\116\111\114",function(r)local A if K.isArray(r)then A=r else A={r.x,r.y;r.z}end return Vector(unpack(A))end)
local m = require("moses")
local Factory = require("support.factory")

Factory.define("vector", function(attributes)
  local coordinates

  if m.isArray(attributes) then
    coordinates = attributes
  else
    coordinates = { attributes.x, attributes.y, attributes.z }
  end

  return Vector(unpack(coordinates))
end)
