'Return the value of the line. Will be a single number for horizontal and
vertical lines, and a list of [x,y] values for diagonal lines.'

def value(self):

    if ((self.angle % 180) == 0):
        return self.getYPos()
    elif ((self.angle % 180) == 90):
        return self.getXPos()
    else:
        return self.getPos()
