@Test public void heightAngleToRelativeHeight() { assertThat("flat", DiffuseLightShadingAlgorithm.heightAngleToRelativeHeight(0), is(0d)); }
static double heightAngleToRelativeHeight(float heightAngle) { double radians = heightAngle / 180d * Math.PI; return Math.tan(radians) * Math.sqrt(2d); }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { static double heightAngleToRelativeHeight(float heightAngle) { double radians = heightAngle / 180d * Math.PI; return Math.tan(radians) * Math.sqrt(2d); } }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { static double heightAngleToRelativeHeight(float heightAngle) { double radians = heightAngle / 180d * Math.PI; return Math.tan(radians) * Math.sqrt(2d); } DiffuseLightShadingAlgorithm();  DiffuseLightShadingAlgorithm(float heightAngle); }
DiffuseLightShadingAlgorithm implements ShadingAlgorithm { static double heightAngleToRelativeHeight(float heightAngle) { double radians = heightAngle / 180d * Math.PI; return Math.tan(radians) * Math.sqrt(2d); } 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 { static double heightAngleToRelativeHeight(float heightAngle) { double radians = heightAngle / 180d * Math.PI; return Math.tan(radians) * Math.sqrt(2d); } 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();  }