Skip to content

//sdk-realtime/me.oriient.ipssdk.ips/IPSContent/snapToClosestShape

snapToClosestShape

[androidJvm]\

@Nullable

open fun snapToClosestShape(@NonNullcoordinate: IPSCoordinate, @NonNullshapes: List<IPSShape>): IPSSnapToShapeResult

Snaps a given coordinate to the closest shape from a list of shapes.

Since

8.3.0

Return

An optional IPSSnapToShapeResult object containing details about the closest shape, or null if no shape is found.

Parameters

androidJvm

coordinate The input coordinate within the building for which the closest shape will be found.
shapes A list of shapes to search from.