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.

Inheritance:
Object =>
MapProjector =>
OrthographicProjector

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
Gets the center latitude.
Type: Double
Gets the globe radius in screen units.
Type: Single
Gets the screen X of the globe center.
Type: Single
Gets the screen Y of the globe center.
Type: Single
Gets the preferred ratio (1:1 for a circular globe).
Type: Single[]
Gets the map width.
Type: Single
Gets the map height.
Type: Single
Gets the x offset width.
Type: Single
Gets the y offset.
Type: Single

Methods

// 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.
)
// Projects the given point.
Double[] point// The point.
)