def getPlayerOrientation(self, player="Player"):
        '''
        Gets the orientation of the specified player
        
        :param player: The UUID of the player
        :type player: str
        :return: The orientation of the player in the format: (yaw, pitch)
        :rtype: numpy.array
        '''
        yp = map(lambda x: x.value, self.getPlayerTag(player)["Rotation"])
        y, p = yp
        if p == 0:
            p = 0.000000001
        if p == 180.0:
            p -= 0.000000001
        yp = y, p
        return array(yp)

        Gets the orientation of the specified player
        
        :param player: The UUID of the player
        :type player: str
        :return: The orientation of the player in the format: (yaw, pitch)
        :rtype: numpy.array
        
pymclevel/infiniteworld.py