use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl in project hale by halestudio.
the class GridInterpolationTest method testByPointsToCenterAllGrid.
@Test
public void testByPointsToCenterAllGrid() throws IOException {
ArcByCenterPoint cbp = new ArcByPointsImpl(new Coordinate(0.01, 3.2), new Coordinate(3.33, 3.33), new Coordinate(0.01, -3.2)).toArcByCenterPoint();
Arc arc = new ArcByCenterPointImpl(cbp.getCenterPoint(), cbp.getRadius(), Angle.fromDegrees(0), Angle.fromDegrees(0), false);
gridInterpolationTest(arc, 0.1, true);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl in project hale by halestudio.
the class GridInterpolationTest method testByPoints3AllGrid.
@Test
public void testByPoints3AllGrid() throws IOException {
Arc arc = new ArcByPointsImpl(new Coordinate(4, 4), new Coordinate(4, 6), new Coordinate(2, 6));
gridInterpolationTest(arc, 0.1, true);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl in project hale by halestudio.
the class SplitInterpolationTest method testArcString.
@Test
public void testArcString() throws IOException {
List<Arc> arcs = new ArrayList<>();
arcs.add(new ArcByPointsImpl(new Coordinate(-3, 2), new Coordinate(-2, 4), new Coordinate(0, 4)));
arcs.add(new ArcByPointsImpl(new Coordinate(0, 4), new Coordinate(2, 3), new Coordinate(4, 4)));
arcs.add(new ArcByPointsImpl(new Coordinate(4, 4), new Coordinate(4, 6), new Coordinate(2, 6)));
splitInterpolationTest(new ArcStringImpl(arcs), 0.1);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl in project hale by halestudio.
the class SplitInterpolationTest method testByPoints1.
@Test
public void testByPoints1() throws IOException {
Arc arc = new ArcByPointsImpl(new Coordinate(-3, 2), new Coordinate(-2, 4), new Coordinate(0, 4));
splitInterpolationTest(arc, 0.1);
}
use of eu.esdihumboldt.util.geometry.interpolation.model.impl.ArcByPointsImpl in project hale by halestudio.
the class SplitInterpolationTest method testByPoints2.
@Test
public void testByPoints2() throws IOException {
Arc arc = new ArcByPointsImpl(new Coordinate(0, 4), new Coordinate(2, 3), new Coordinate(4, 4));
splitInterpolationTest(arc, 0.1);
}
Aggregations