Adding more math functions to the 2d vector type.