org.geotools.gml3
Class AbsoluteTolerance

Object
  extended by AbsoluteTolerance
All Implemented Interfaces:
LinearizationTolerance

public class AbsoluteTolerance
extends Object
implements LinearizationTolerance

Author:
Erik van de Pol

Constructor Summary
AbsoluteTolerance(double tolerance)
           
 
Method Summary
 double getTolerance(Circle circle)
          Returns the linearization tolerance for the arc linearization algorithm.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteTolerance

public AbsoluteTolerance(double tolerance)
Method Detail

getTolerance

public double getTolerance(Circle circle)
Description copied from interface: LinearizationTolerance
Returns the linearization tolerance for the arc linearization algorithm.

Specified by:
getTolerance in interface LinearizationTolerance
Parameters:
circle - The circle the Arc is part of. This circle is calculated during the Arc linearization algorithm.
Returns:
The maximum distance after linearization, between the original Arc and the linearized Arc.


Copyright © 1996-2014 Geotools. All Rights Reserved.