Checks if the provided bearing (in decimal degrees) is valid, i.e. if it can be used in GIS calculations in the Geodetic coordinate system.
true - if the bearing is valid, false - if the bearing is invalid
The valid bearing is a real number greater or equal to zero.
This sample shows how to call the Geodetic.IsValidBearingInDeg method from C# code:
string errorMessage = String.Empty;
double bearingInDeg = 78.5;
if (Geodetic.IsValidBearingInDeg(bearingInDeg, out errorMessage))
{
Console.WriteLine("Bearing is valid.");
}
else
{
Console.WriteLine(errorMessage);
}