Unified Vec/Plane/Quat handling code.