Skip to content

PROTOCOL

IPSHeading

@objc public protocol IPSHeading

This class describes the heading direction.

Properties

x

var x: CGFloat

The x component of the unit vector describing the heading direction.

y

var y: CGFloat

The y component of the unit vector describing the heading direction.

angle

var 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).

  • Returns: The angle in radians.