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"
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
Returns the y-offset used to obtain a precise coordinate.
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.
~PrecisionModel(void)
destructor
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
Returns the x-offset used to obtain a precise coordinate.
static const double maximumPreciseValue
The maximum precise value representable in a double.
Definition: PrecisionModel.h:173
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)
Creates a PrecisionModel specifying an explicit precision model type.
double makePrecise(double val) const
Rounds a numeric value to the PrecisionModel grid.
bool isFloating() const
Tests whether the precision model supports floating point.
Type getType() const
Gets the type of this PrecisionModel.
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25