public float distance(Ray r) {
        return FastMath.sqrt(distanceSquared(r));
    }
Calculate the distance between this segment and the specified Ray.

@param r the input Ray (not null, unaffected)
@return the minimum distance (&ge;0)
jme3-core/src/main/java/com/jme3/math/LineSegment.java