public float distance(LineSegment ls) {
        return FastMath.sqrt(distanceSquared(ls));
    }
Calculate the distance between this segment and another.

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