Function getAngleSnapResult
- getAngleSnapResult(coordinate, p1, p2, geometryBearings, otherVertexIndex, maxDistanceSquared, snapOrthogonal?, snapParallel?, heightReference?): SnapResult<"orthogonal" | "parallel"> | undefined
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
Try to create an orthogonal for p2 - p1 - coordinate. otherwise snaps p1 - coordinate to any of the given geometry bearings