GeoRawProjection class Projections

Raw projections are point transformation functions that are used to implement custom projections.

They typically passed to GeoProjection or GeoProjectionMutator. They are exposed here to facilitate the derivation of related projections. Raw transforms take spherical coordinates [lambda, phi] in radians (not degrees!) and return a point [x, y], typically in the unit square centered around the origin.

Constructors

GeoRawProjection.new(List<num> transform(num, num), [List<num>? invert(num, num)?])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(num lambda, num phi) List<num>
Transforms the specified point [lambda, phi] in radians, returning a new point [x, y] in unspecified and implementation-dependent coordinates.
invert(num x, num y) List<num>?
The inverse of call.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited