Magnetic(Coordinate, DataModel) Constructor

Initializes a magnetic object based on a Coordinate and a provided data Model. Assumes height is at MSL.

Definition

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

Parameters

coordinate  Coordinate
Coordinate
dataModel  DataModel
DataModel

Example

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

See Also