Wait, I think you misunderstood.
Both sine and cosine are non-negative when 0 <= θ <= 90, right?
You saw that when you rotated the "grey square" around the origin by 90 degrees that its X coordinate was from the negative side, right?
Code:sinθ >= 0 sin(θ + 90) < 0 <==> cosθ < 0 X = cosθ cosθ >= 0 cos(θ + 90) < 0 <==> sinθ < 0, but the Y coordinate is positive, so -sinθ > 0 Υ = -sinθ