20 #ifndef GEOS_GEOM_PRECISIONMODEL_H
21 #define GEOS_GEOM_PRECISIONMODEL_H
23 #include <geos/export.h>
24 #include <geos/inline.h>
88 friend class io::Unload;
279 std::string toString()
const;
311 void setScale(
double newScale);
327 # include "geos/geom/PrecisionModel.inl"
330 #endif // ndef GEOS_GEOM_PRECISIONMODEL_H
PrecisionModel(Type nModelType)
Creates a PrecisionModel specifying an explicit precision model type.
double makePrecise(double val) const
Rounds a numeric value to the PrecisionModel grid.
int compareTo(const PrecisionModel *other) const
Compares this PrecisionModel object with the specified object for order.
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
@ FLOATING
Definition: PrecisionModel.h:108
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
void makePrecise(Coordinate &coord) const
Rounds the given Coordinate to the PrecisionModel grid.
double getOffsetX() const
Returns the x-offset used to obtain a precise coordinate.
~PrecisionModel(void)
destructor
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:84
@ FIXED
Definition: PrecisionModel.h:101
PrecisionModel(void)
Creates a PrecisionModel with a default precision of FLOATING.
double getOffsetY() const
Returns the y-offset used to obtain a precise coordinate.
double getScale() const
Returns the multiplying factor used to obtain a precise coordinate.
bool isFloating() const
Tests whether the precision model supports floating point.
Type
The types of Precision Model which GEOS supports.
Definition: PrecisionModel.h:93
PrecisionModel(double newScale)
Creates a PrecisionModel with Fixed precision.
Type getType() const
Gets the type of this PrecisionModel.
int getMaximumSignificantDigits() const
Returns the maximum number of significant digits provided by this precision model.
static const double maximumPreciseValue
The maximum precise value representable in a double.
Definition: PrecisionModel.h:173
PrecisionModel(double newScale, double newOffsetX, double newOffsetY)
Creates a PrecisionModel with Fixed precision.