triangulate.cpp: combine some often reused terms, and faster inverse multiplication (saves FDIV)