Function getSnappedCoordinateForResults

  • Parameters

    • results: (
          | undefined
          | {
              otherVertexIndex: number;
              snapped: Coordinate;
              type: "orthogonal";
          }
          | {
              otherVertexIndex: number;
              parallelIndex: number;
              snapped: Coordinate;
              type: "parallel";
          }
          | {
              snapped: Coordinate;
              type: "vertex";
          }
          | {
              snapped: Coordinate;
              type: "edge";
          })[]
    • coordinates: Coordinate[]
    • maxDistanceSquared: number

    Returns Coordinate | undefined