@ Pure public static boolean containsCapsulePoint ( double capsule1Ax , double capsule1Ay , double capsule1Az , double capsule1Bx , double capsule1By , double capsule1Bz , double capsule1Radius , double px , double py , double pz ) { double distPointToCapsuleSegment = AbstractSegment3F . distanceSquaredSegmentPoint ( capsule1Ax , capsule1Ay , capsule1Az , capsule1Bx , capsule1By , capsule1Bz , px , py , pz ) ; return ( distPointToCapsuleSegment <= ( capsule1Radius * capsule1Radius ) ) ; }
Compute intersection between a point and a capsule .