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 SnapResult<"orthogonal" | "parallel"> | undefined