Explanation:
sine and cosine have a full cycle every 180° or pi (as the full circle is 360° or 2pi).
cosine starts with the value 1 (for theta = 0), goes to 0 for 90° or pi/2, then to -1 for 180° or pi, then again to 0 for 270° or 3pi/2. and back to 1 for 360° or 2pi.
and the next cycle begins ...
so,
cos(theta) = 0 for
theta = pi/2 and 3pi/2