GeoOrientationUpdate

public struct GeoOrientationUpdate : Hashable

Describes geodetic orientation update with bearing and tilt. Updating an orientation value can be skipped by setting nil in an appriopriate field. For example, if one wants bearing not to be updated set it to nil.

  • Bearing in degrees. 0 is north up, positive is clockwise. A nil value means that bearing is not updated and the current value is kept.

    Declaration

    Swift

    public let bearing: Double?
  • Tilt in degrees. 0 is perpendicular to earth surface, a positive value turns the camera’s nose up and changes the camera’s location to ensure that the camera target is not changed. A nil value means that tilt is not updated and the current value is kept.

    Declaration

    Swift

    public let tilt: Double?
  • Declaration

    Swift

    public init(bearing: Double?, tilt: Double?)

    Parameters

    bearing

    Bearing in degrees. When the passed value is nil bearing is not updated and the current value is kept. NaN value is converted to nil.

    tilt

    Tilt in degrees. When the passed value is nil tilt is not updated and the current value is kept. NaN value is converted to nil.

  • Constructs a new GeoOrientationUpdate instance from a GeoOrientation instance.

    Declaration

    Swift

    public init(_ orientation: GeoOrientation)

    Parameters

    orientation

    A GeoOrientation instance used as a source for a GeoOrientationUpdate instance’s values.