@ Pure public static boolean intersectsSegmentCapsule ( double sx1 , double sy1 , double sz1 , double sx2 , double sy2 , double sz2 , double mx1 , double my1 , double mz1 , double mx2 , double my2 , double mz2 , double radius ) { double d = distanceSquaredSegmentSegment ( sx1 , sy1 , sz1 , sx2 , sy2 , sz2 , mx1 , my1 , mz1 , mx2 , my2 , mz2 ) ; return d < ( radius * radius ) ; }
Tests if the capsule is intersecting a segment .