Magnetic(Coordinate, Double, DataModel) Constructor

Initializes a magnetic object based on a Coordinate, height and a provided data model.

Definition

Namespace: CoordinateSharp.Magnetic
Assembly: CoordinateSharp.Magnetic (in CoordinateSharp.Magnetic.dll) Version: 1.1.11.0
XMLNS for XAML: Not mapped to an xmlns.
C#
public Magnetic(
	Coordinate coordinate,
	double height,
	DataModel dataModel
)

Parameters

coordinate  Coordinate
Coordinate
height  Double
Height in Meters
dataModel  DataModel
Data Model

Example

Creating a Magnetic object from a coordinate with a specified height (in meters).
C#
Coordinate c = Coordinate(25,25, new DateTime(2020,1,1));
Magnetic m = new Magnetic(c, 1000, DataModel.WMM2020);

See Also