'Check if the provided XYPoint can be recreated by a Hue lamp.'

def checkPointInLampsReach(self, p):

    v1 = XYPoint((self.Lime.x - self.Red.x), (self.Lime.y - self.Red.y))
    v2 = XYPoint((self.Blue.x - self.Red.x), (self.Blue.y - self.Red.y))
    q = XYPoint((p.x - self.Red.x), (p.y - self.Red.y))
    s = (self.crossProduct(q, v2) / self.crossProduct(v1, v2))
    t = (self.crossProduct(v1, q) / self.crossProduct(v1, v2))
    return ((s >= 0.0) and (t >= 0.0) and ((s + t) <= 1.0))
