Interface: GeoProjection()
Defined in: src/mobjects/geo/projections.ts:44
A projection maps a lon/lat position (degrees) to a 2D scene point. An
unmappable point (for example the far hemisphere of an orthographic
projection) comes back as [NaN, NaN]; see isProjectedPointVisible.
clipRadius, when set, marks the projection as mapping only a disc of that
radius centered on the origin (the projected globe silhouette of
orthographic). Area renderers then clip each polygon ring to that
circle, following the limb across the hidden hemisphere, instead of only
dropping the unmappable vertices (which chords straight across the disc).
Cylindrical and whole-world projections leave it undefined: they map every
point, so there is nothing to clip.
GeoProjection(
position): [number,number]
Defined in: src/mobjects/geo/projections.ts:45
A projection maps a lon/lat position (degrees) to a 2D scene point. An
unmappable point (for example the far hemisphere of an orthographic
projection) comes back as [NaN, NaN]; see isProjectedPointVisible.
clipRadius, when set, marks the projection as mapping only a disc of that
radius centered on the origin (the projected globe silhouette of
orthographic). Area renderers then clip each polygon ring to that
circle, following the limb across the hidden hemisphere, instead of only
dropping the unmappable vertices (which chords straight across the disc).
Cylindrical and whole-world projections leave it undefined: they map every
point, so there is nothing to clip.
Parameters
position
Returns
[number, number]
Properties
clipRadius?
optionalclipRadius:number
Defined in: src/mobjects/geo/projections.ts:47
Projected radius of the mappable disc, for ring clipping. Undefined = map everything.