Vertex coordinate transformation

Transformation from (i,j) coordinates into triindices. See the comment
for details on the conversion.
Position calculations

Function for simple vector calculus. The biggest problem remains to be
rigorous about precision, representability and information.