Move the tangent calculation function to the VertexObject class as a static function