com.partnersoft.geometry
Class PolylineFollower
java.lang.Object
com.partnersoft.geometry.PolylineFollower
public class PolylineFollower
- extends java.lang.Object
Allows you to trace a polyline by advancing along its course - each
advance sets public x, y and angle variables for your use.
- Author:
- Paul Reavis
Copyright 2002 Partner Software, Inc.
|
Method Summary |
void |
advance(double distance)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
polyline
public Polyline polyline
x
public double x
y
public double y
angle
public double angle
currentSegment
public int currentSegment
numSegments
public int numSegments
currentRemainingLength
public double currentRemainingLength
segmentStartX
public double segmentStartX
segmentStartY
public double segmentStartY
segmentEndX
public double segmentEndX
segmentEndY
public double segmentEndY
length
public double length
PolylineFollower
public PolylineFollower(Polyline polly)
advance
public void advance(double distance)