private RadianAngle EnsureLongitudeRadians() { if (!_longitudeRadians.HasValue) { _longitudeRadians = _longitude?.ToRadianAngle() ?? default(RadianAngle); } return(_longitudeRadians.Value); }
public GeoCoordinate(DegreeAngle latitude, DegreeAngle longitude) { Assert.IsInRange(latitude, MinLatitude, MaxLatitude, nameof(latitude)); Assert.IsInRange(longitude, MinLongitude, MaxLongitude, nameof(longitude)); _latitude = latitude; _longitude = longitude; _latitudeRadians = latitude.ToRadianAngle(); _longitudeRadians = longitude.ToRadianAngle(); }
public static number Tan(DegreeAngle a) => Tan(a.ToRadianAngle());
public static number Sin(DegreeAngle a) => Sin(a.ToRadianAngle());
public static number Cos(DegreeAngle a) => Cos(a.ToRadianAngle());
public GeoCoordinate GetDestinationPoint(Length distance, DegreeAngle bearing) => GetDestinationPoint(distance, bearing.ToRadianAngle());