Distinguishing between scalar and vector quantities