in my extremely exciting opengl project i need a function that works like this, to return an intersection for a sphere and line segment.
sphere is the point where the sphere sits. x,y,z
line_start is the point where the line originates
line_end is the ending point of that line
readius is the radius of the sphere
bool Intersection(float sphere, float line_start, float line_end, float radius)
if intersection return true;
else return false;
Im not worried about point of intersection, just if an intersection does exist.