Use vectors in 3D (#913)

Use vectors in 3D (#913)

Use vectors in 3D