triangulate.cpp,
combine often reused terms,
a/b == a*(1/b) // faster if reused,
(spaces)