The first point is on the graph of cosine, but the second point is on the graph of sine. When :

So the point is on the graph of cosine.