edu.mit.sketch.geom
Class Approximation
java.lang.Object
|
+--edu.mit.sketch.geom.Approximation
- All Implemented Interfaces:
- Comparator, Serializable
- public class Approximation
- extends Object
- implements Serializable, Comparator
This class represents a geometric object along with *SOME*
error metric relating to the LSQ error.
- See Also:
- Serialized Form
|
Field Summary |
double |
error
The error |
error
public double error
- The error
Approximation
public Approximation(GeometricObject geometric_object,
double error)
- The constructor.
compare
public int compare(Object o1,
Object o2)
- Implement Comparator
- Specified by:
compare in interface Comparator
equals
public boolean equals(Object o1,
Object o2)
- Implement Comparator
toString
public String toString()
- Implement toString()
- Overrides:
toString in class Object