Magnetic(Coordinate, Distance, DataModel) Constructor
Initializes a magnetic object based on a Coordinate, height and a provided data model.
Namespace: CoordinateSharp.MagneticAssembly: CoordinateSharp.Magnetic (in CoordinateSharp.Magnetic.dll) Version: 2.1.1.0
XMLNS for XAML: Not mapped to an xmlns.
public Magnetic(
Coordinate coordinate,
Distance height,
DataModel dataModel
)
Parameters
- coordinate Coordinate
- Coordinate
- height Distance
- Height
- dataModel DataModel
- Data Model
Creating a Magnetic object from a coordinate with a specified height (in meters).
Coordinate c = Coordinate(25,25, new DateTime(2020,1,1));
Distance d = new Distance(10, DistanceType.Miles); //Height is 10 miles above MSL
Magnetic m = new Magnetic(c, d, DataModel.WMM2020);