@ Pure public static boolean intersectsSphereLine ( double x1 , double y1 , double z1 , double radius , double x2 , double y2 , double z2 , double x3 , double y3 , double z3 ) { double d = AbstractSegment3F . distanceSquaredLinePoint ( x2 , y2 , z2 , x3 , y3 , z3 , x1 , y1 , z1 ) ; return d < ( radius * radius ) ; }
Replies if a sphere and a line are intersecting .