created utility.geometric
and made heavy use of it in TemporalEventLinearPiecewise