mathlib vector2 : adding several functions (1).

Added a dozen function declaration/implementation regarding vec2.