Create a rectangle geometry.
An array representing the top-left and bottom-right corners of the rectangle in basic coordinates. Ordered according to [x0, y0, x1, y1].
Get rect property.
Array representing the top-left and bottom-right corners of the rectangle in basic coordinates.
Generated using TypeDoc
RectGeometry
Represents a rectangle geometry in the 2D basic image coordinate system.
var basicRect = [0.5, 0.3, 0.7, 0.4]; var rectGeometry = new Mapillary.TagComponent.RectGeometry(basicRect);