OrthographicProjector

Projects latitude and longitude coordinates using the Orthographic (globe) projection. Points on the far side of the globe are not visible.

Class · Namespace LiveChartsCore.Geo · Assembly LiveChartsCore · View source

Inheritance

Object MapProjector OrthographicProjector

Members

Properties

CenterLongitude Double
Gets the center longitude.
CenterLatitude Double
Gets the center latitude.
Radius Single
Gets the globe radius in screen units.
ScreenCenterX Single
Gets the screen X of the globe center.
ScreenCenterY Single
Gets the screen Y of the globe center.
PreferredRatio Single[]
Gets the preferred ratio (1:1 for a circular globe).
MapWidth Single
Gets the map width.
MapHeight Single
Gets the map height.
XOffset Single
Gets the x offset width.
YOffset Single
Gets the y offset.

Methods

IsVisible 2 parameters

Determines whether a point at the given longitude and latitude is visible in this projection. Always returns true for flat projections.

Double longitude The longitude.

Double latitude The latitude.

ToMap 1 parameter

Projects the given point.

Double[] point The point.

Constructors

OrthographicProjector 6 parameters

Initializes a new instance of the OrthographicProjector class.

Single mapWidth Width of the map area.

Single mapHeight Height of the map area.

Single offsetX The offset x.

Single offsetY The offset y.

Double centerLon The center longitude (where the globe is facing).

Double centerLat The center latitude (where the globe is facing).