More math stuff for 2d and 3d vectors in vec4s.