mathlib vector2 and triangle2

Fixed rotation fonctions for vector2 and implemented rotation functions
for triangle2.