Skip to content

CLASS

IPSRectangularShapeModel

public final class IPSRectangularShapeModel: IPSRectangularShape

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

  • since: 8.3.0

Properties

topRight

public let topRight: IPSCoordinate

The coordinate of the top right corner of the proximity trigger's region relative to the building. - since: 8.3.0

bottomLeft

public let bottomLeft: IPSCoordinate

The coordinate of the bottom left corner of the proximity trigger's region relative to the building. - 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(topRight:bottomLeft:)

public init(topRight: IPSCoordinate, bottomLeft: IPSCoordinate)