using System; namespace GeoAPI.Geometries { /// /// /// public enum PrecisionModels { /// /// Floating precision corresponds to the standard /// double-precision floating-point representation, which is /// based on the IEEE-754 standard /// Floating = 0, /// /// Floating single precision corresponds to the standard /// single-precision floating-point representation, which is /// based on the IEEE-754 standard /// FloatingSingle = 1, /// /// Fixed Precision indicates that coordinates have a fixed number of decimal places. /// The number of decimal places is determined by the log10 of the scale factor. /// Fixed = 2, } public interface IPrecisionModel : IComparable, IComparable, IEquatable { PrecisionModels PrecisionModelType { get; } bool IsFloating { get; } int MaximumSignificantDigits { get; } double Scale { get; } double MakePrecise(double val); void MakePrecise(ICoordinate coord); } }