GEOS  3.9.1dev
Classes | Functions
geos::util Namespace Reference

Utility classes for GEOS. More...

Classes

class  Assert
 
class  AssertionFailedException
 Indicates a bug in GEOS code. More...
 
class  CoordinateArrayFilter
 A CoordinateFilter that adds read-only pointers to every Coordinate in a Geometry to a given vector. More...
 
class  GeometricShapeFactory
 Computes various kinds of common geometric shapes. More...
 
class  GEOSException
 Base class for all GEOS exceptions. More...
 
class  IllegalArgumentException
 Indicates one or more illegal arguments. More...
 
class  IllegalStateException
 Indicates an illegal state. More...
 
class  Interrupt
 Used to manage interruption requests and callbacks. More...
 
class  Profile
 
class  Profiler
 
class  TopologyException
 Indicates an invalid or inconsistent topological situation encountered during processing. More...
 
class  UniqueCoordinateArrayFilter
 
class  UnsupportedOperationException
 Indicates that the requested operation is unsupported. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Profile &)
 Return a string representing the Profile. More...
 
std::ostream & operator<< (std::ostream &os, const Profiler &)
 Return a string representing the Profiler. More...
 
double sym_round (double val)
 Symmetric Rounding Algorithm. More...
 
double java_math_round (double val)
 Asymmetric Rounding Algorithm. More...
 
double rint_vc (double val)
 Equivalent to Java Math.rint() More...
 
double round (double val)
 

Detailed Description

Utility classes for GEOS.

Function Documentation

double geos::util::java_math_round ( double  val)

Asymmetric Rounding Algorithm.

Referenced by round().

Here is the caller graph for this function:

std::ostream& geos::util::operator<< ( std::ostream &  os,
const Profile  
)

Return a string representing the Profile.

std::ostream& geos::util::operator<< ( std::ostream &  os,
const Profiler  
)

Return a string representing the Profiler.

double geos::util::rint_vc ( double  val)

Equivalent to Java Math.rint()

double geos::util::round ( double  val)
inline

Default rounding method for GEOS

Note
Always use this rounding method, to easy easy switching between different rounding method for the whole codebase.

Definition at line 36 of file math.h.

References java_math_round().

Here is the call graph for this function:

double geos::util::sym_round ( double  val)

Symmetric Rounding Algorithm.