ON_3fPoint::DistanceTo

Hello team, I know this might be a small thing and yes, I can implement it myself, but would be nice to have
ON_3fPoint::SquaredDistanceTo. In many case in the code you might need to compare only the distances and lengths, while not worried about the actual value. For example
if ( v[0].DistanceTo(v[2]) <= v[1].DistanceTo(v[3]) )
In this case sqrt() will be called twice, while it is not needed.

I know this sounds small thing, but when you do high performance evaluation, this may help a little bit. It is 5 minutes of coding and having such function doesn’t hurt

Regards
Kostadin

Hi Kostadin,

I’ve added your request to YouTrack:

https://mcneel.myjetbrains.com/youtrack/issue/RH-38899

– Dale

RH-38899 is fixed in Rhino 7 Service Release 14