@Test public void examples() { assertThat("neutral", example(0, 0), is(0)); assertThat("very much away from light", example(1000, -10000), is(-128)); assertThat("exactly pointing at light", example(1 / algo.getLightHeight(), 1 / algo.getLightHeight()), is(127)); }
public double getLightHeight() { return a; }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { public double getLightHeight() { return a; } }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { public double getLightHeight() { return a; } DiffuseLightShadingAlgorithm();  DiffuseLightShadingAlgorithm(float heightAngle); }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { public double getLightHeight() { return a; } DiffuseLightShadingAlgorithm();  DiffuseLightShadingAlgorithm(float heightAngle); double getLightHeight(); @Override int getAxisLenght(HgtCache.HgtFileInfo source); @Override RawShadingResult transformToByteBuffer(HgtCache.HgtFileInfo source, int padding); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { public double getLightHeight() { return a; } DiffuseLightShadingAlgorithm();  DiffuseLightShadingAlgorithm(float heightAngle); double getLightHeight(); @Override int getAxisLenght(HgtCache.HgtFileInfo source); @Override RawShadingResult transformToByteBuffer(HgtCache.HgtFileInfo source, int padding); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }