/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getCoordinate(int) */ public void getCoordinate(int i, Coordinate coord) { coord.x = getOrdinate(i, 0); coord.y = getOrdinate(i, 1); if (dimension > 2) coord.z = getOrdinate(i, 2); }
/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getX(int) */ public double getX(int index) { return getOrdinate(index, 0); }
/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getY(int) */ public double getY(int index) { return getOrdinate(index, 1); }
/** * @see org.opengis.geometry.coordinate.DirectPosition#getOrdinate(int) */ public double getOrdinate( int arg0 ) throws IndexOutOfBoundsException { return sequence.getOrdinate(offset, arg0); }
/** * @see org.opengis.geometry.coordinate.DirectPosition#getOrdinate(int) */ public double getOrdinate( int arg0 ) throws IndexOutOfBoundsException { return sequence.getOrdinate(offset, arg0); }
/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getCoordinate(int) */ public void getCoordinate(int i, Coordinate coord) { coord.x = getOrdinate(i, 0); coord.y = getOrdinate(i, 1); if (dimension > 2) coord.z = getOrdinate(i, 2); }
/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getY(int) */ public double getY(int index) { return getOrdinate(index, 1); }
/** * @see com.vividsolutions.jts.geom.CoordinateSequence#getX(int) */ public double getX(int index) { return getOrdinate(index, 0); }
/** * @see org.opengis.geometry.coordinate.DirectPosition#getCoordinate() */ public double[] getCoordinate() { return new double[]{ sequence.getX(offset), sequence.getY(offset), sequence.getOrdinate(offset, CoordinateSequence.Z)}; }
/** * @see org.opengis.geometry.coordinate.DirectPosition#getCoordinates() */ public double[] getCoordinates() { return new double[]{ sequence.getX(offset), sequence.getY(offset), sequence.getOrdinate(offset, CoordinateSequence.Z)}; }
builder.setOrdinate(1, 0, builder.getOrdinate(0, 0)); builder.setOrdinate(1, 1, builder.getOrdinate(1, 0));
builder.setOrdinate(1, 0, builder.getOrdinate(0, 0)); builder.setOrdinate(1, 1, builder.getOrdinate(1, 0));
builder.setOrdinate(1, 0, builder.getOrdinate(0, 0)); builder.setOrdinate(1, 1, builder.getOrdinate(1, 0));