OrthographicProjector
Class
Assembly LiveChartsCore
Namespace LiveChartsCore.Geo
Summary:
Projects latitude and longitude coordinates using the Orthographic (globe) projection.
Points on the far side of the globe are not visible.
Constructors
// 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). |
)
Properties
Gets the center longitude.
Type: Double
Type: Double
Gets the center latitude.
Type: Double
Type: Double
Gets the screen X of the globe center.
Type: Single
Type: Single
Gets the screen Y of the globe center.
Type: Single
Type: Single
Gets the preferred ratio (1:1 for a circular globe).
Type: Single[]
Type: Single[]