gis-tools-ts - v0.6.0
    Preparing search index...

    Function intersectionOfSegments

    • Find the intersection of two segments

      NOTE: Segments that are only touching eachothers endpoints are considered intersections

      Parameters

      • a: [VectorPoint<Properties>, VectorPoint<Properties>]

        the first segment

      • b: [VectorPoint<Properties>, VectorPoint<Properties>]

        the second segment

      Returns undefined | VectorPoint<Properties>

      A point if the segments intersect where the intersection occurs, otherwise undefined