MaplyShapeRectangle
@interface MaplyShapeRectangle : MaplyShape
Represents a simple rectangle in 3D.
The rectangle is a 2D object in 3D. Specify the lower left and upper right coordinates as well as an optional texture.
-
Lower left corner in 3D
Declaration
Objective-C
@property (assign, readwrite, nonatomic) MaplyCoordinate3dD ll;
Swift
var ll: MaplyCoordinate3dD { get set }
-
Upper right corner in 3D
Declaration
Objective-C
@property (assign, readwrite, nonatomic) MaplyCoordinate3dD ur;
Swift
var ur: MaplyCoordinate3dD { get set }
-
If set, the texture to stretch across the rectangle.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) MaplyTexture *texture;
Swift
var texture: MaplyTexture? { get set }