Closed orionna319 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
running-page | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 24, 2024 2:23pm |
I see that diff is the longest distance minus the shortest distance. Looking at this data, it is indeed not zero. So I don't quite understand what this diff is used for.
def diameter(self) -> float:
if self.is_valid():
return self.upper() - self.lower()
return 0
diff = length_range.diameter()
Thanks will dig it later
interpolate_color
is wrong. The solution is to check whetherspecial_distance2
is greater thanlength_range.upper()
. If it is greater, returncolor1