|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.geom.Approximation
public class Approximation
This class represents a geometric object along with *SOME* error metric relating to the LSQ error.
| Constructor Summary | |
|---|---|
Approximation(GeometricObject geometric_object,
double error)
The constructor. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Implement Comparator |
boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Implement Comparator |
double |
getError()
Returns the error value of the Approximation class. |
GeometricObject |
getGeometricObject()
Returns the geometricObject value of the Approximation class. |
void |
setError(double error)
Sets the error value of the Approximation class. |
void |
setGeometricObject(GeometricObject geometricObject)
Sets the geometricObject value of the Approximation class. |
java.lang.String |
toString()
Implement toString() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public Approximation(GeometricObject geometric_object,
double error)
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator
public boolean equals(java.lang.Object o1,
java.lang.Object o2)
public java.lang.String toString()
toString in class java.lang.Objectpublic double getError()
public void setError(double error)
error - The error to set.public GeometricObject getGeometricObject()
public void setGeometricObject(GeometricObject geometricObject)
geometricObject - The geometricObject to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||