I haven’t had to do anything with sin, cos or tan in over 20 years and even back then it’s a miracle I managed to pass my advanced math course considering I never understood what they were because it was so badly explained to us…
Cos and Sin just return the X or Y values respectively around a circle of radius 1. So if my line starts at 0 degrees, X=1 Cos(0)=1 Sin(0)=0. I’ll leave it to the reader to try 90 degrees.