Path.GetTotalLength

Would it be possible for an alternate GetTotalSquaredLength() method to be made available? I have several use-cases where I simply wish to check for path length difference and not having to calculate the square root via Vector3.Distance would aid in performance of this.

Thanks,
Andrew

Hi

No. You cannot sum squared lengths. And since the path consists of many small segments, it will need to calculate the square root anyway. You can of course square the result of GetTotalLength if you want to compare it to an already squared value.