org.openlr.map.PathFactory Maven / Gradle / Ivy
package org.openlr.map;
import org.openlr.geo.Geo;
import java.util.List;
public class PathFactory {
private final Geo geo;
public PathFactory(Geo geo) {
this.geo = geo;
}
public PathFactory() {
this(new Geo());
}
public > Path create(List lines) {
return create(lines, 0, 0);
}
public > Path create(List lines, double positiveOffset, double negativeOffset) {
return new PathImpl<>(lines, positiveOffset, negativeOffset, geo);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy