Spatial Vectors

These functions act on the vector (position) type. For the following functions, v, v1 and v2 are vectors, p1 and p2 are positions and x can either be a vector or a number: