20#ifndef GEOS_GEOM_PRECISIONMODEL_H
21#define GEOS_GEOM_PRECISIONMODEL_H
23#include <geos/export.h>
24#include <geos/inline.h>
88friend class io::Unload;
313 void setScale(
double newScale);
329# include "geos/geom/PrecisionModel.inl"
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
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
std::string toString() const
Sets internal to the precise representation of external.
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:174
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
@ FLOATING_SINGLE
Definition PrecisionModel.h:115
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.
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains the interfaces for converting JTS objects to and from other formats.
Definition Geometry.h:56
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25