triangle-sine-cosine