epfl-archive/Alpano/tests/ch/epfl/alpano/TestDemForPanoramaComp.java

26 lines
504 B
Java
Raw Normal View History

2022-04-07 18:43:21 +02:00
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;
}
}