three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Add Ray.distanceToPointSquared method

Open NStal opened this issue 13 years ago • 2 comments

I suggest add the squared version of Ray.distanceToPoint, just like Vector3.distanceTo to Vector3.distanceToSquared, to prevent unwanted computation in some situation.

Not a big problem,I can add it in my project myself though. : )

NStal avatar Apr 26 '13 12:04 NStal

I actually agree.

Can you create a pull request??

gero3 avatar Apr 26 '13 16:04 gero3

+1

mrdoob avatar Apr 26 '13 17:04 mrdoob