displacement and distance physics code example Example: is displacement a vector quantity yes displacement is a vector Quantity