add piecewise linear sin/cos approx from humanoids14