This commit is contained in:
ClemensFischer 2025-01-27 19:30:02 +01:00
parent 381dca48ce
commit ff8a81e087
3 changed files with 4 additions and 3 deletions

View file

@ -39,7 +39,8 @@ namespace MapControl
if (coerce != null)
{
// do not coerce default value
// Do not coerce default value.
//
coerceFunc = (obj, value) => Equals(value, defaultValue) ? value : coerce((TOwner)obj, value);
}

View file

@ -65,7 +65,7 @@ namespace MapControl
? double.Parse(values[4], NumberStyles.Float, CultureInfo.InvariantCulture)
: 0d;
// always return a LatLonBox, i.e. a BoundingBox with optional rotation, as used by GeoImage and GroundOverlay
// Always return a LatLonBox, i.e. a BoundingBox with optional rotation, as used by GeoImage and GroundOverlay.
//
return new LatLonBox(
double.Parse(values[0], NumberStyles.Float, CultureInfo.InvariantCulture),

View file

@ -172,7 +172,7 @@ namespace MapControl
// beta = atan(dlon,dy)
// sec(beta) = 1 / cos(atan(dlon,dy)) = sqrt(1 + (dlon/dy)^2)
//
var sec = Math.Sqrt(1d + dlon * dlon / (dy * dy));
const double secLimit = 1000d; // beta approximately +/-90°