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;
272 std::string toString()
const;
304 void setScale(
double newScale);
320 # include "geos/geom/PrecisionModel.inl"
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
double getOffsetY() const
int compareTo(const PrecisionModel *other) const
Compares this PrecisionModel object with the specified object for order.
PrecisionModel(double newScale, double newOffsetX, double newOffsetY)
Creates a PrecisionModel with Fixed precision.
double getScale() const
Returns the multiplying factor used to obtain a precise coordinate.
int getMaximumSignificantDigits() const
Returns the maximum number of significant digits provided by this precision model.
double getOffsetX() const
static const double maximumPreciseValue
Definition: PrecisionModel.h:166
void makePrecise(Coordinate &coord) const
Rounds the given Coordinate to the PrecisionModel grid.
PrecisionModel(void)
Creates a PrecisionModel with a default precision of FLOATING.
Type
The types of Precision Model which GEOS supports.
Definition: PrecisionModel.h:93
@ FIXED
Definition: PrecisionModel.h:101
@ FLOATING
Definition: PrecisionModel.h:108
PrecisionModel(double newScale)
Creates a PrecisionModel with Fixed precision.
PrecisionModel(Type nModelType)
double makePrecise(double val) const
Rounds a numeric value to the PrecisionModel grid.
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26