You have two vectors - direction vector D=(sin(a),cos(a)) and PZ. If their cross product is positive, then Z lies in left semiplane, otherwise - in right semiplane. What semiplane is considered as 'above' - depends on cos(a) sign.
Result = cos(a) * (sin(a) * PZ.Y - cos(a) * PZ.X) > 0