Class SimplificationErrorCalculator.TriangleHeightCalculator

java.lang.Object
org.elasticsearch.geometry.simplify.SimplificationErrorCalculator.TriangleHeightCalculator
All Implemented Interfaces:
SimplificationErrorCalculator
Enclosing interface:
SimplificationErrorCalculator

public static class SimplificationErrorCalculator.TriangleHeightCalculator extends Object implements SimplificationErrorCalculator
Calculate the triangle area using geographic coordinates and Herons formula (side lengths) as described at Area of a triangle, but scale the area down by the inverse of the length of the base (left-right), which estimates the height of the triangle.