Use vectors for relative motion (#642)

Use vectors for relative motion (#642)

Apply vA/B=vA−vB\mathbf{v}_{A/B} = \mathbf{v}_A - \mathbf{v}_B.