samples.preview_new_graphdraw
Class CoordinateUtil.Line
java.lang.Object
samples.preview_new_graphdraw.CoordinateUtil.Line
- Enclosing class:
- CoordinateUtil
protected static class CoordinateUtil.Line
- extends Object
A class which represents a geometric line. Note that if the
line is vertical, intercept is not defined and the results may
not make sense.
- Author:
- Joshua O'Madadhain
Method Summary |
double |
getX(double y)
|
double |
getY(double x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordinateUtil.Line
public CoordinateUtil.Line(Coordinates source,
Coordinates dest)
CoordinateUtil.Line
public CoordinateUtil.Line(double slope,
double intercept)
getY
public double getY(double x)
getX
public double getX(double y)