ticket #29: Port of new primitives class Triangle.