DistanceToSquared Method

Hello fellow grasshoppers,

I’m currently developing a process that tries to find distances between points, and I found the one called DistanceToSquared.

I just want to understand why would this process faster? I would really love an insight into why this is true, so I can properly employ the method.

Thanks for any insight!

Distance Calculator 2D.

The function removes the need to compute the square root to get the length.

2 Likes

That is simple and elegant explanation lol. Thank you very much!