# Intersection point between n-vector and n-sphere

Hello,

I'm trying to compute the intersection point between a n-dimensional vector and a n-sphere.
Do you know how to perform this? is it the same than 2 and 3 dimensions?

Thank you very much,

lavinia
Gold Member
Hello,

I'm trying to compute the intersection point between a n-dimensional vector and a n-sphere.
Do you know how to perform this? is it the same than 2 and 3 dimensions?

Thank you very much,

what have you tried so far?

The statement is quite ambiguous as in general a vector doesn't need to have a common point with a sphere. Even if it's centred at the sphere's origin, its magnitude might be less than the radius of the sphere. You need to attach your vector to some point for this question to have meaning! Maybe you mean the intersection between an n-sphere and the n-line whose direction is defined by an n-vector that originates from a certain point? If so, what is the centre of the sphere, and what is the vector origin point?

Hello,

Sorry, I did not explain very good.

Suppose that we have one n-sphere. Inside it, we have a n-point (this point different of the origin, it is another point named H).

So, I have to compute the intersection of the line (that goes from the origin of the n-sphere passing from H) with the n-sphere. do you understand? is it possible?