'Returns the unit vector direction of the flow vector as an (x,y) tuple.'

def unitVector(self):

    mag = self.magnitude()
    if (mag != 0.0):
        return ((float(self.dx) / mag), (float(self.dy) / mag))
    else:
        return (0.0, 0.0)
