Skip to content

CLASS

IPSSnapToShapeResult

public final class IPSSnapToShapeResult

A result object representing the outcome of finding the closest shape to a given coordinate. - Since: 8.3.0

Properties

snappedCoordinate

public let snappedCoordinate: IPSCoordinate

The coordinate where the closest shape was found. - Since: 8.3.0

shape

public let shape: IPSShape

The closest shape found for the provided coordinate. - Since: 8.3.0

distance

public let distance: Double

The distance between the input coordinate and the closest shape coordinate. - Since: 8.3.0

indexInInputList

public let indexInInputList: Int

The index of the closest shape in the list of input shapes. - Since: 8.3.0