MaplyShapeRectangle
Objective-C
@interface MaplyShapeRectangle : MaplyShape
Swift
class 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 (nonatomic) MaplyCoordinate3dD ll;
Swift
var ll: MaplyCoordinate3dD { get set }
-
Upper right corner in 3D
Declaration
Objective-C
@property (nonatomic) MaplyCoordinate3dD ur;
Swift
var ur: MaplyCoordinate3dD { get set }
-
If set, the textures to stretch across the rectangle.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSMutableArray *textures;
Swift
var textures: NSMutableArray? { get set }
-
Add a texture to stretch across the rectangle
Declaration
Objective-C
- (void)addTexture:(MaplyTexture *_Nonnull)texture;
Swift
func addTexture(_ texture: MaplyTexture)