documenting the Vec2D class