@vcmap/core
    Preparing search index...

    Function getAngleSnapResult

    • Try to create an orthogonal for p2 - p1 - coordinate. otherwise snaps p1 - coordinate to any of the given geometry bearings

      Parameters

      • coordinate: Coordinate
      • p1: Coordinate
      • p2: Coordinate
      • geometryBearings: number[]
      • otherVertexIndex: number
      • maxDistanceSquared: number
      • snapOrthogonal: boolean = true
      • snapParallel: boolean = true
      • heightReference: HeightReference = HeightReference.CLAMP_TO_GROUND

      Returns
          | { otherVertexIndex: number; snapped: Coordinate; type: "orthogonal" }
          | {
              otherVertexIndex: number;
              parallelIndex: number;
              snapped: Coordinate;
              type: "parallel";
          }
          | undefined