MagneticExtensionsGetMagnetic(Coordinate) Method

Creates a Magnetic object from a Coordinate with the latest 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 static Magnetic GetMagnetic(
	this Coordinate coordinate
)

Parameters

coordinate  Coordinate
Coordinate

Return Value

Magnetic
Magnetic

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Coordinate. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Example

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

See Also