public void set(LineSegment ls) {
        this.origin = new Vector3f(ls.getOrigin());
        this.direction = new Vector3f(ls.getDirection());
        this.extent = ls.getExtent();
    }
Copy the specified segment to this one.

@param ls the LineSegment to copy (not null, unaffected)
jme3-core/src/main/java/com/jme3/math/LineSegment.java