I'm not sure what "differential" geometry is, so hopefully this is the right section.(adsbygoogle = window.adsbygoogle || []).push({});

I need to find the point on a cone that is farthest in a given direction.

This can be done easily if the shape were a sphere which is represented as a point and a radius:

farthest_point = sphere_origin + normalized_dir * sphere_radius;

A capsule is also simple, which is represented as two spheres which expresses the bounds. You just do the same sphere equation above for both spheres, dot the results with the direction, and take which ever value gave the largest absolute value. (in the event that a line is perpendicular with the capsule's broad side, the point will be around the spheres but that's okay since every other point is at the same distance. Gotta pick one, and that's as good as any.)

Now what I'm faced with is now is a cone, which can be represented as a point, a direction, a length, and a radius. Not sure what to do with this one. I can get the radius of the cone at an arbitrary point up the length of the cone, but I don't know if it helps:

radius_at_dist = ( dist / length ) * radius

edit: not that it should help find a solution, but this is for the Support() function of a GJK collision detection algorithm.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Find the point on a cone that is farthest in a given direction

Loading...

Similar Threads for Find point cone |
---|

A Can I find a smooth vector field on the patches of a torus? |

**Physics Forums | Science Articles, Homework Help, Discussion**