Point p0Shifted = new DefaultPoint( null, p0.getCoordinateSystem(), p0.getPrecision(), new double[] { p0.get0() - minOrd0, p0.get1() - minOrd1 } ); Point p1Shifted = new DefaultPoint( null, p1.getCoordinateSystem(), p1.getPrecision(), new double[] { p1.get0() - minOrd0, p1.get1() - minOrd1 } ); Point p2Shifted = new DefaultPoint( null, p2.getCoordinateSystem(), p2.getPrecision(), new double[] { p2.get0() - minOrd0, p2.get1() - minOrd1 } ); realPoints.add( new DefaultPoint( null, p.getCoordinateSystem(), p.getPrecision(), new double[] { p.get0() + minOrd0, p.get1() + minOrd1 } ) );
Point p0Shifted = new DefaultPoint( null, p0.getCoordinateSystem(), p0.getPrecision(), new double[] { p0.get0() - minOrd0, p0.get1() - minOrd1 } ); Point p1Shifted = new DefaultPoint( null, p1.getCoordinateSystem(), p1.getPrecision(), new double[] { p1.get0() - minOrd0, p1.get1() - minOrd1 } ); Point p2Shifted = new DefaultPoint( null, p2.getCoordinateSystem(), p2.getPrecision(), new double[] { p2.get0() - minOrd0, p2.get1() - minOrd1 } );
if ( min.equals( max ) ) { min = new DefaultPoint( min.getId(), min.getCoordinateSystem(), min.getPrecision(), new double[] { min.get0() - 0.0001, min.get1() - 0.0001 } ); if ( min.equals( max ) ) { min = new DefaultPoint( min.getId(), min.getCoordinateSystem(), min.getPrecision(), new double[] { min.get0() - 0.0001, min.get1() - 0.0001 } );
Point p0Shifted = new DefaultPoint( null, p0.getCoordinateSystem(), p0.getPrecision(), new double[] { p0.get0() - minOrd0, p0.get1() - minOrd1 } ); Point p1Shifted = new DefaultPoint( null, p1.getCoordinateSystem(), p1.getPrecision(), new double[] { p1.get0() - minOrd0, p1.get1() - minOrd1 } ); Point p2Shifted = new DefaultPoint( null, p2.getCoordinateSystem(), p2.getPrecision(), new double[] { p2.get0() - minOrd0, p2.get1() - minOrd1 } );
PrecisionModel pm = spline.getControlPoints().get( 0 ).getPrecision(); for ( int i = 0; i < numPoints; i++ ) { iPoints.add( new DefaultPoint( null, crs, pm, new double[] { interpolated[2 * i], interpolated[2 * i + 1] } ) );
Point p0Shifted = new DefaultPoint( null, p0.getCoordinateSystem(), p0.getPrecision(), new double[] { p0.get0() - minOrd0, p0.get1() - minOrd1 } ); Point p1Shifted = new DefaultPoint( null, p1.getCoordinateSystem(), p1.getPrecision(), new double[] { p1.get0() - minOrd0, p1.get1() - minOrd1 } ); Point p2Shifted = new DefaultPoint( null, p2.getCoordinateSystem(), p2.getPrecision(), new double[] { p2.get0() - minOrd0, p2.get1() - minOrd1 } );