Afou To Patisa Posted June 4, 2017 Posted June 4, 2017 Hello everyone, let's say we want to calculate 10 positions between 2 3D points. Example 1 Point (x=3250, y=5821, z=300) 2 Point (x=5230, y=8500, z=300) Now we want generate 10 positions between those 2 coords as the image shows below: I've checked stackoverflow to get the idea, i ended up with a code like this: insideroot= Math.sqrt(x - a) + Math.sqrt(y - b); distance = Math.sqrt(insideroot); Which doesn't really help me a lot. Is there any idea on how to use it and generate positions base on an Integer (spots between those points)? Thanks a lot. Quote
0 Afou To Patisa Posted June 5, 2017 Author Posted June 5, 2017 The 3D part makes it scary but if he actually spends some time thinking,he can figure out more than 1 ways to solve this. Imo asking is OK. Pretend to know the answer when u actually dont isnt. Just read the posts in first page of these clowns talking about distance and how to calculate it. The other dude just wrote "pythagorean x2" when the question was "how to find points in between 2 points in 3d". That dude cant even google in 2k17 + he copy pasted wrong answer + he doesnt know eng He is drunk, he is pro admin 2017 sad story Quote
Question
Afou To Patisa
Hello everyone, let's say we want to calculate 10 positions between 2 3D points. Example
1 Point (x=3250, y=5821, z=300)
2 Point (x=5230, y=8500, z=300)
Now we want generate 10 positions between those 2 coords as the image shows below:
I've checked stackoverflow to get the idea, i ended up with a code like this:
Which doesn't really help me a lot. Is there any idea on how to use it and generate positions base on an Integer (spots between those points)?
Thanks a lot.
16 answers to this question
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.