Function getGeometrySnapResult
- getGeometrySnapResult(geometries, coordinate, maxDistanceSquared, snapToVertex?, snapToEdge?, heightReference?): SnapResult<"edge" | "vertex"> | undefined
Parameters
- geometries: Geometry[]
- coordinate: Coordinate
- maxDistanceSquared: number
- snapToVertex: boolean = true
- snapToEdge: boolean = true
- heightReference: HeightReference = HeightReference.CLAMP_TO_GROUND
Returns SnapResult<"edge" | "vertex"> | undefined
Snaps to the vertices of the provided geometries, otherwise tries to snap to the edges.