Handles vector math.