Sha256: 4b191f1184d25b52720abc527e4f7aa2dcae901931054a372b55e637fd01f46e

Contents?: true

Size: 1.73 KB

Versions: 23

Compression:

Stored size: 1.73 KB

Contents

/**
 * Abstract; not implemented. There is no explicit constructor; this class
 * merely serves to document the representation used by {@link pv.Geo.scale}.
 *
 * @class Represents a geographic projection. This class provides the core
 * implementation for {@link pv.Geo.scale}s, mapping between geographic
 * coordinates (latitude and longitude) and normalized screen space in the range
 * [-1,1]. The remaining mapping between normalized screen space and actual
 * pixels is performed by <tt>pv.Geo.scale</tt>.
 *
 * <p>Many geographic projections have a point around which the projection is
 * centered. Rather than have each implementation add support for a
 * user-specified center point, the <tt>pv.Geo.scale</tt> translates the
 * geographic coordinates relative to the center point for both the forward and
 * inverse projection.
 *
 * <p>In general, this class should not be used directly, unless the desire is
 * to implement a new geographic projection. Instead, use <tt>pv.Geo.scale</tt>.
 * Implementations are not required to implement inverse projections, but are
 * needed for some forms of interactivity. Also note that some inverse
 * projections are ambiguous, such as the connecting points in Dymaxian maps.
 *
 * @name pv.Geo.Projection
 * @see pv.Geo.scale
 */

/**
 * The <i>forward</i> projection.
 *
 * @function
 * @name pv.Geo.Projection.prototype.project
 * @param {pv.Geo.LatLng} latlng the latitude and longitude to project.
 * @returns {pv.Vector} the xy-coordinates of the given point.
 */

/**
 * The <i>inverse</i> projection; optional.
 *
 * @function
 * @name pv.Geo.Projection.prototype.invert
 * @param {pv.Vector} xy the x- and y-coordinates to invert.
 * @returns {pv.Geo.LatLng} the latitude and longitude of the given point.
 */

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubyvis-0.6.0 vendor/protovis/src/geo/Projection.js
rubyvis-0.5.2 vendor/protovis/src/geo/Projection.js
rubyvis-0.5.1 vendor/protovis/src/geo/Projection.js
rubyvis-0.5.0 vendor/protovis/src/geo/Projection.js
rubyvis-0.4.1 vendor/protovis/src/geo/Projection.js
rubyvis-0.4.0 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.6 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.5 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.4 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.3 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.2 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.1 vendor/protovis/src/geo/Projection.js
rubyvis-0.3.0 vendor/protovis/src/geo/Projection.js
rubyvis-0.2.2 vendor/protovis/src/geo/Projection.js
rubyvis-0.2.1 vendor/protovis/src/geo/Projection.js
rubyvis-0.2.0 vendor/protovis/src/geo/Projection.js
rubyvis-0.1.7 vendor/protovis/src/geo/Projection.js
rubyvis-0.1.6 vendor/protovis/src/geo/Projection.js
rubyvis-0.1.5 vendor/protovis/src/geo/Projection.js
rubyvis-0.1.4 vendor/protovis/src/geo/Projection.js