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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..