PROTOCOL
IPSFloorCoordinatesConverter
@objc public protocol IPSFloorCoordinatesConverter
This object allows to convert coordinates between Oriient coordinate system of the relevant floor and a Client's coordinate system.
- Since: 3.6.0
Properties
floorId
var floorId: String
Id of the relevant floor
Methods
convertFromOriient(coordinate:)
func convertFromOriient(coordinate: IPSCoordinate) -> IPSCoordinate
Converts a coordinate in Oriient's coordinate system to the corresponding coordinate in the Client's coordinate system.
convertFromOriient(heading:)
func convertFromOriient(heading: IPSHeading) -> IPSHeading
Converts a heading in Oriient's coordinate system to the corresponding heading in the Client's coordinate system.
convertToOriient(coordinate:)
func convertToOriient(coordinate: IPSCoordinate) -> IPSCoordinate
Converts a coordinate in the Client's coordinate system to the corresponding coordinate in Oriient's coordinate system.
convertToOriient(coordinate:allowSnapping:)
func convertToOriient(coordinate: IPSCoordinate, allowSnapping: Bool) -> IPSCoordinate
Converts a coordinate in the Client's coordinate system to the corresponding coordinate in Oriient's coordinate system.
- Parameters:
- coordinate: Client coordinate.
-
allowSnapping: Defines if the SDK is allowed to snap the coordinate to layout if possible.
-
Returns: Corresponding Oriient coordinate.
-
Since: 8.3.0
Parameters
| Name | Description |
|---|---|
| coordinate | Client coordinate. |
| allowSnapping | Defines if the SDK is allowed to snap the coordinate to layout if possible. |
convertToOriient(heading:)
func convertToOriient(heading: IPSHeading) -> IPSHeading
Converts a heading in the Client's coordinate system to the corresponding heading in Oriient's coordinate system.