GPXライブラリの構造Degrees
を作成したいと思います。XSD for GPX(GPX 1.1 Schema)では、minInclusive=0およびmaxExclusive=360として定義されています。構造には、2つのパブリック静的フィールドと:が含まれます。degreesType
MinValue = 0
MaxValue = x
public struct Degrees : IFormattable, IComparable, IComparable<Degrees>, IEquatable<Degrees>
{
private decimal value;
public static Degrees MinValue = 0M;
//public static Degrees MaxValue = x;
}
xの値を指定する最良の方法は何ですか?360D-1は不正確であり、360D-0.001は、1/1000度よりも優れた精度を誰も望んでいないという仮定になります。