do vector math in lua