26 lines
504 B
Java
26 lines
504 B
Java
|
package ch.epfl.alpano;
|
||
|
|
||
|
|
||
|
|
||
|
import ch.epfl.alpano.dem.DiscreteElevationModel;
|
||
|
|
||
|
public class TestDemForPanoramaComp implements DiscreteElevationModel {
|
||
|
|
||
|
private final Interval2D extent;
|
||
|
|
||
|
public TestDemForPanoramaComp(Interval2D extent) {
|
||
|
this.extent = extent;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void close() throws Exception { }
|
||
|
|
||
|
@Override
|
||
|
public Interval2D extent() { return extent; }
|
||
|
|
||
|
@Override
|
||
|
public double elevationSample(int x, int y) {
|
||
|
|
||
|
return x*x-y*y;
|
||
|
}
|
||
|
}
|