Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`CoordinateUtil.Line(Coordinates source, Coordinates dest)`
`CoordinateUtil.Line(double slope, double intercept)`

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`

Constructor Detail

### CoordinateUtil.Line

    public CoordinateUtil.Line(Coordinates source,
                               Coordinates dest)

### CoordinateUtil.Line

    public CoordinateUtil.Line(double slope,
                               double intercept)

Method Detail

### getY

    public double getY(double x)

### getX

    public double getX(double y)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD