Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly boundingBox

boundingBox: null | GeoBox

Readonly splines

splines: readonly GeoSpline[]

Accessors

bounds

  • Returns GeoBox

latMax

  • get latMax(): number
  • Returns number

latMin

  • get latMin(): number
  • Returns number

lngMax

  • get lngMax(): number
  • Returns number

lngMin

  • get lngMin(): number
  • Returns number

Methods

centroid

  • Returns GeoPoint

contains

  • contains(that: AnyGeoShape): boolean
  • contains(x: number, y: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    • x: number
    • y: number

    Returns boolean

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

forEachCoord

  • forEachCoord<R>(callback: (lng: number, lat: number) => void | R): undefined | R
  • forEachCoord<R, S>(callback: (lng: number, lat: number) => void | R, thisArg: S): undefined | R
  • Type parameters

    • R

    Parameters

    • callback: (lng: number, lat: number) => void | R
        • (lng: number, lat: number): void | R
        • Parameters

          • lng: number
          • lat: number

          Returns void | R

    Returns undefined | R

  • Type parameters

    • R

    • S

    Parameters

    • callback: (lng: number, lat: number) => void | R
        • (lng: number, lat: number): void | R
        • Parameters

          • lng: number
          • lat: number

          Returns void | R

    • thisArg: S

    Returns undefined | R

interpolate

  • Parameters

    • u: number

    Returns GeoPoint

interpolateLat

  • interpolateLat(u: number): number
  • Parameters

    • u: number

    Returns number

interpolateLng

  • interpolateLng(u: number): number
  • Parameters

    • u: number

    Returns number

intersects

  • Parameters

    Returns boolean

isDefined

  • isDefined(): boolean
  • Returns boolean

project

split

  • Parameters

    • u: number

    Returns [GeoPath, GeoPath]

subdivide

  • Parameters

    • u: number

    Returns GeoPath

toString

  • toString(): string
  • Returns string

union

Static builder

  • Returns GeoPathBuilder

Static closed

  • Parameters

    Returns GeoPath

Static empty

  • Returns GeoPath

Static fromAny

  • Parameters

    Returns GeoPath

  • Parameters

    Returns GeoShape

Static fromPoints

  • Parameters

    Returns GeoPath

Static fromSplines

  • Parameters

    Returns GeoPath

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyGeoShape

Static isAnyPath

  • Parameters

    • value: unknown

    Returns value is AnyGeoPath

Static isSplines

  • Parameters

    • value: unknown

    Returns value is GeoPathSplines

Static of

  • Parameters

    Returns GeoPath

Static open

  • Parameters

    Returns GeoPath

Generated using TypeDoc