Skip to content

CLASS

IPSPolygonalShapeModel

public final class IPSPolygonalShapeModel: IPSPolygonalShape

This class implements the IPSPolygonalShape protocol and enables the creation of a polygonal shape instance. Coordinates are provided in meters.

  • since: 8.3.0

Properties

topRight

public let topRight: IPSCoordinate

TThe coordinate of the top right corner of the proximity trigger's region on the map. - since: 8.3.0

bottomLeft

public let bottomLeft: IPSCoordinate

The coordinate of the bottom left corner of the proximity trigger's region on the map. - since: 8.3.0

points

public let points: [IPSCoordinate]

The list of coordinates that comprise the polygon. - since: 8.3.0

type

public var type: IPSShapeType

The type of this shape - since: 8.3.0

Methods

getCenter()

public func getCenter() -> IPSCoordinate
  • Returns: The coordinate of the center of the shape relative to the building.
  • since: 8.3.0

init(points:)

public init(points: [IPSCoordinate])