A simple representation of a bounding box.

Export

Hierarchy

  • MPBounds

Constructors

Properties

Accessors

Methods

Constructors

  • Creates an instance of MPBounds.

    Parameters

    • northeast: MPPoint

      The northeastern most point.

    • southwest: MPPoint

      The southwestern most point.

    Returns MPBounds

Properties

northeast: MPPoint

The northeastern most point.

southwest: MPPoint

The southwestern most point.

Builder: typeof __class = ...

Construct a bounds object from a collection of points, to ensure that the bounds contains all of them.

Accessors

  • get center(): MPPoint
  • The center of the bounds.

    Returns MPPoint

Methods

  • Check whether a point is containted within the bounds.

    Parameters

    Returns boolean

  • Returns {
        northeast: number[];
        southwest: number[];
    } | {
        northeast: MPPoint;
        southwest: MPPoint;
    }

  • Creator for MPBounds, used to decode JSON from the MapsIndoors SDK.

    Parameters

    Returns MPBounds

    Static

  • Create a MPBounds from a Bounding Box.

    Parameters

    • bbox: number[]

    Returns MPBounds

    Static

Generated using TypeDoc