Skip to content

//sdk-realtime/me.oriient.ipssdk.api.models/IPSSnapToShapeResult

IPSSnapToShapeResult

[androidJvm]\ data class IPSSnapToShapeResult(val snappedCoordinate: IPSCoordinate, val shape: IPSShape, val indexInInputList: Int, val distance: Double)

A result object representing the outcome of finding the closest shape to a given coordinate.

Since

8.3.0

Constructors

IPSSnapToShapeResult [androidJvm]
constructor(snappedCoordinate: IPSCoordinate, shape: IPSShape, indexInInputList: Int, distance: Double)

Properties

Name Summary
distance [androidJvm]
val distance: Double
The distance between the input coordinate and the closest shape coordinate.
indexInInputList [androidJvm]
val indexInInputList: Int
The index of the closest shape in the list of input shapes.
shape [androidJvm]
val shape: IPSShape
The closest shape found for the provided coordinate.
snappedCoordinate [androidJvm]
val snappedCoordinate: IPSCoordinate
The coordinate where the closest shape was found.