Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CoordinateBounds

A CoordinateBounds object represents a rectangular region defined by northwest and southeast coordinates.

Hierarchy

  • CoordinateBounds

Index

Constructors

constructor

  • Initializes a bounds instance defined by the specified northwest and southeast coordinates.

    Parameters

    Returns CoordinateBounds

Properties

east

east: number = 0

The eastern longitude

north

north: number = 0

The northern latitude

south

south: number = 0

The southern latitude

west

west: number = 0

The western longitude

Methods

center

  • Returns the center coordinate for the bounds.

    Returns Coordinate

contains

  • Returns whether the bounds contains the specified coordinate or bounds.

    Parameters

    Returns boolean

extend

  • Expands the bounds to include the specified coordinate. If the bounds already contains the coodinate, then the bounds will not change.

    Parameters

    Returns void

intersects

  • Returns whether the bounds intersects the specified bounds but does not contain it.

    Parameters

    Returns boolean

northeast

  • Returns the northeastern coordinate for the bounds.

    Returns Coordinate

northwest

  • Returns the northwestern coordinate for the bounds.

    Returns Coordinate

southeast

  • Returns the southeastern coordinate for the bounds.

    Returns Coordinate

southwest

  • Returns the southwestern coordinate for the bounds.

    Returns Coordinate

toString

  • toString(): string
  • Returns a string representation of the coordinate bounds.

    Returns string

Static fromBounds

Static fromPoints

Generated using TypeDoc