Skip to content

CLASS

IPSHeadingModel

public final class IPSHeadingModel: IPSHeading
  • This class implements the IPSHeading interface and enables the creation of an instance.
  • Since: 8.3.0

Properties

x

public let x: CGFloat

The x component of the unit vector describing the heading direction. - Since: 8.3.0

y

public let y: CGFloat

The y component of the unit vector describing the heading direction. - Since: 8.3.0

angle

public let angle: CGFloat

The angle describing the heading direction. Provided as radians from the positive x axis in counter clockwise direction. A heading angle of 0 degrees corresponds to the geometric angle of 0 degrees (3 o'clock on a watch). The angle in radians. - Since: 8.3.0

Methods

init(x:y:angle:)

public init(x: CGFloat, y: CGFloat, angle: CGFloat)