Calculating a position a specific magnitude away

Discuss the language of the universe.

Moderators: Calilasseia, ADParker

Calculating a position a specific magnitude away

#1  Postby LjSpike » Aug 09, 2016 10:51 am

I'm doing a little thing because I've got some spare times on my hands, but I've come across a small problem. I'm stuck as to what the equations I need are.

I need to check is a position is a specific magnitude away from another position in a 2D space, and as well for a 3D space (or alternatively generate a random position a specific magnitude away in a 2D space as well as for a 3D space).

Any Ideas?
LjSpike
THREAD STARTER
 
Posts: 89
Age: 20
Male

United Kingdom (uk)
Print view this post

Ads by Google


Re: Calculating a position a specific magnitude away

#2  Postby Bernoulli » Aug 09, 2016 12:28 pm

What's the "magnitude"? Are you referring to a log scale of some sort?
User avatar
Bernoulli
Banned Sockpuppet
 
Posts: 901

Print view this post

Re: Calculating a position a specific magnitude away

#3  Postby Alan B » Aug 09, 2016 3:30 pm

When you mentioned 'magnitude', I thought that this was an astronomy question. Then you started talking about 2D 'space'...
I have NO BELIEF in the existence of a God or gods. I do not have to offer evidence nor do I have to determine absence of evidence because I do not ASSERT that a God does or does not or gods do or do not exist.
User avatar
Alan B
 
Posts: 9999
Age: 84
Male

Country: UK (Birmingham)
United Kingdom (uk)
Print view this post

Re: Calculating a position a specific magnitude away

#4  Postby Evolving » Aug 09, 2016 4:05 pm

I assume LJSpike means the magnitude or norm of the vector connecting the two points.

If you know the coordinates of the two points it's straightforward to work out that vector, and then you work out its magnitude as the root of the sum of the squares.
How extremely stupid not to have thought of that - T.H. Huxley
User avatar
Evolving
 
Name: Serafina Pekkala
Posts: 11993
Female

Country: Luxembourg
Luxembourg (lu)
Print view this post


Return to Mathematics

Who is online

Users viewing this topic: No registered users and 1 guest