using System;
namespace GeoAPI.Geometries{
/// <summary>
///
/// </summary>
public enum PrecisionModels
{
/// <summary>
/// Floating precision corresponds to the standard
/// double-precision floating-point representation, which is
/// based on the IEEE-754 standard
/// </summary>
Floating = 0,
/// <summary>
/// Floating single precision corresponds to the standard
/// single-precision floating-point representation, which is
/// based on the IEEE-754 standard
/// </summary>
FloatingSingle = 1,
/// <summary>
/// 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.
/// </summary>
Fixed = 2,
}
public interface IPrecisionModel : IComparable, IComparable<IPrecisionModel>, IEquatable<IPrecisionModel>
{
PrecisionModels PrecisionModelType { get; }
bool IsFloating { get; }
int MaximumSignificantDigits { get; }
double Scale { get; }
double MakePrecise(double val);
void MakePrecise(ICoordinate coord);
}
}
|