Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RectGeometry

class

RectGeometry

classdesc

Represents a rectangle geometry in the 2D basic image coordinate system.

example
var basicRect = [0.5, 0.3, 0.7, 0.4];
var rectGeometry = new Mapillary.TagComponent.RectGeometry(basicRect);

Hierarchy

Index

Constructors

Accessors

Constructors

constructor

  • Create a rectangle geometry.

    constructor
    throws

    {GeometryTagError} Rectangle coordinates must be valid basic coordinates.

    Parameters

    • rect: number[]

      An array representing the top-left and bottom-right corners of the rectangle in basic coordinates. Ordered according to [x0, y0, x1, y1].

    Returns RectGeometry

Accessors

rect

  • get rect(): number[]

Generated using TypeDoc