Class ST_TriangleSlope

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_TriangleSlope
    extends org.h2gis.api.DeterministicScalarFunction
    This function is used to compute the slope direction of a triangle.
    Author:
    Erwan Bocher
    • Constructor Detail

      • ST_TriangleSlope

        public ST_TriangleSlope()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • computeSlope

        public static Double computeSlope​(org.locationtech.jts.geom.Geometry geometry)
                                   throws IllegalArgumentException
        Parameters:
        geometry - Triangle
        Returns:
        slope of a triangle expressed in percents
        Throws:
        IllegalArgumentException - Accept only triangles