MaplyShapeCylinder
Objective-C
@interface MaplyShapeCylinder : MaplyShape
Swift
class MaplyShapeCylinder : MaplyShape
Represent a cyclinder on the globe or map.
This object represents a cylinder with it’s base tied to the surface of the globe or map and it’s top pointed outward (on the globe anyway). The base can be offset and the overall radius and height are adjustable.
-
Center of the cylinder’s base in geographic.
The x and y coordinates correspond to longitude and latitude and are in geographic (radians).
Declaration
Objective-C
@property (nonatomic) MaplyCoordinate baseCenter;
Swift
var baseCenter: MaplyCoordinate { get set }
-
Base height above the globe in display units.
This is an optional base offset from the globe or map. The cylinder will be offset by this amount. It’s also in display units, like the radius.
Declaration
Objective-C
@property (nonatomic) float baseHeight;
Swift
var baseHeight: Float { get set }
-
Radius of the cylinder in display units.
This is the radius of the cylinder, but not in geographic. It’s in display units. Display units for the globe are based on a radius of 1.0. Scale accordingly. For the map, display units typically run from -PI to +PI, depending on the coordinate system.
Declaration
Objective-C
@property (nonatomic) float radius;
Swift
var radius: Float { get set }
-
Height of the cylinder in display units.
This is the height of the cylinder. The top of the cylinder will be at baseHeight+height. It’s also in display units, like the radius.
Declaration
Objective-C
@property (nonatomic) float height;
Swift
var height: Float { get set }