Disabled external gits
This commit is contained in:
26
Alpano/tests/ch/epfl/alpano/TestDemForPanoramaComp.java
Normal file
26
Alpano/tests/ch/epfl/alpano/TestDemForPanoramaComp.java
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user