Reputation: 51
I am trying to find a way to figure out whether a 3D point P(x,y,z)
is in side a cone with an elliptical base or not.
I have given the vertex V(x,y,z)
, the center of the base B(x,y,z)
, and the length of the minor and major axis of an ellipse a
and b
, forming the base of a cone.
Is there any way to get an analytic equation descriping the cone? I found this answer, which handles the problem for a circular cone, however I cannot extend it to work for my problem :(
Upvotes: 1
Views: 594
Reputation: 3009
Take the line that goes through V and P, find the intersection point of this line with the plane of the cone base. Test if this intersection point is within the base ellipse.
edit: I've just expanded the comments - what Thomas said.
Upvotes: 3