Added convenience functions for the vec2 type into the math library.