WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

Raw projections are point transformation functions that are used to implement custom projections; they typically passed to d3.geoProjection or d3.geoProjectionMutator. They are exposed here to facilitate the derivation of related projections. Raw projections take spherical coordinates [lambda, phi] in radians (not degrees!) and return a point [x, y], typically in the unit square centered around the origin.

Hierarchy

  • GeoRawProjection

Callable

  • __call(lambda: number, phi: number): [number, number]
  • Projects the specified point [lambda, phi] in radians, returning a new point [x, y] in unitless coordinates.

    Parameters

    • lambda: number

      Spherical lambda coordinate in radians.

    • phi: number

      Spherical phi coordinate in radians.

    Returns [number, number]

Index

Methods

Methods

invert

  • invert(x: number, y: number): [number, number]
  • Inverts the projected point [x, y] in unitless coordinates, returning an unprojected point in spherical coordinates [lambda, phi] in radians.

    Parameters

    • x: number

      x-coordinate (unitless).

    • y: number

      y-coordinate (unitless).

    Returns [number, number]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc