All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openlr.map.PathFactory Maven / Gradle / Ivy

There is a newer version: 2.0-beta3
Show newest version
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