dyei nightmare Posted July 23, 2020 Share Posted July 23, 2020 https://www.sidefx.com/docs/houdini/vex/functions/length2.html i just wanna know exacty what this function does and in which cases you can use it Quote Link to comment Share on other sites More sharing options...
nuki Posted July 23, 2020 Share Posted July 23, 2020 (edited) length = sqrt(x²+y²+z²) the way i read it, length2 = x²+y²+z² in some cases (eg. when just calculating the ratio between two distances) you can simply ignore the square root calculation to increase your codes performance. Edited July 23, 2020 by nuki Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.