mathlib vector2 and triangle2

Added function that give the orthogonal or opposite vector without
having to give origin point.

Implemented some functions for the triangle2.