Integrated triangle integerizer function