Jump to content

Question

Posted

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:

iIGhb0F.png

 

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. 

 

6EETSPs.png

Recommended Posts

  • 0
Posted

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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...