ECEFTryParse Method

Attempts to parse a string into an ECEF coordinate (kilometer format).

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static bool TryParse(
	string value,
	out ECEF ecef
)

Parameters

value  String
string
ecef  ECEF
ECEF

Return Value

Boolean
ECEF

Example

The following example attempts to parse an ECEF coordinate.
C#
ECEF ecef;
if(!ECEF.TryParse("217.206 km, -4127.862 km, 4841.101 km", out ecef))
{
    Console.WriteLine(ecef);//217.206 km, -4127.862 km, 4841.101 km
}

See Also