MaplyShapeGreatCircle

Objective-C

@interface MaplyShapeGreatCircle : MaplyShape

Swift

class MaplyShapeGreatCircle : MaplyShape

Represents an great circle or great circle with height.

Great circles are the shortest distance between two points on a globe. We extend that a bit here, by adding height. The result is a curved object that can either sit on top of the globe or rise above it. In either case it begins and ends at the specified points on the globe.

  • Starting point in geographic coordinates.

    Declaration

    Objective-C

    @property (nonatomic) MaplyCoordinate startPt;

    Swift

    var startPt: MaplyCoordinate { get set }
  • End point in geographic coordinates

    Declaration

    Objective-C

    @property (nonatomic) MaplyCoordinate endPt;

    Swift

    var endPt: MaplyCoordinate { get set }
  • Height of the great circle shape right in its middle.

    This is the height of the great circle right in the middle. It will built toward that height and then go back down as it reaches the endPt. The height is in display units. For the globe that’s based on a radius of 1.0.

    Declaration

    Objective-C

    @property (nonatomic) float height;

    Swift

    var height: Float { get set }
  • Line width for the great circle geometry.

    The great circle is implemented as a set of lines. This is the width, in pixels, of those lines.

    Declaration

    Objective-C

    @property (nonatomic) float lineWidth;

    Swift

    var lineWidth: Float { get set }
  • Angle between start and end points in radians

    Declaration

    Objective-C

    - (float)calcAngleBetween;

    Swift

    func calcAngleBetween() -> Float