Geotools.Net

PrecisionModel Members

Public Static (Shared) Methods

MakePrecise This method "fixes" an ordinate value to the Fixed PrecisionModel grid.

Protected Static (Shared) Fields

FIXED Fixed Precision implies that coordinates have a fixed number of decimal places.
FLOATING Floating precision corresponds to the usual notation of floating-point representation.

Public Instance Constructors

PrecisionModelOverloaded. Initialize a new instance of the PrecisionModel class.

Public Instance Properties

ModelType Represents the model type of this precision object.
OffsetX Amount by which to subtract the x-coordinate before multiplying by the scale, to obtain a precise coordinate.
OffsetY Amount by which to subtract the y-coordinate before multiplying by the scale, to obtain a precise coordinate.
Scale Amount by which to multiply a coordinate after subtracting the offset, to obtain a precise coordinate. If scale is 0, this PrecisionModel represents a floating precision model. Coordinates are left with the implicit precision of the floating-point representation.

Public Instance Methods

Equals Returns true if obj is of type PrecisionModel and Scale, OffsetX and OffsetY are equal.
GetHashCode Returns a unique integer value for this object.
GetType (inherited from Object)Gets the Type of the current instance.
IsFloating Returns true if the model type of this object is Floating and false otherwise.
Round Sets p1 to the value of external point p0 rounded to this precision model.
ToExternalOverloaded. Returns the external representation of internalCoordinate.
ToInternalOverloaded. Sets internal to Fixed Precise representation of external.
ToString Writes out the string representation of this object. If IsFloating() is true, then ToString()returns "Floating". If not true, then ToString() returns "Fixed" plus the scale and offset values.

Protected Instance Fields

_maximumPreciseValue The maximum precise value representable in double. Since IEEE 754 allows a double-precision 64-bit number is 1.79769313486232e308.
_modelType The type of PrecisionModel this represents. Defaults to floating precision model.
_offsetX Amount by which to subtract the x-coordinate before multiplying by the scale, to obtain a precise coordinate.
_offsetY Amount by which to subtract the y-coordinate before multiplying by the scale, to obtain a precise coordinate.
_scale Amount by which to multiply a coordinate after subtracting the _offset, to obtain a precise coordinate.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

PrecisionModel Class | Geotools.Geometries Namespace