com.partnersoft.v3x.geometry.single
Class PolylineFollower

java.lang.Object
  extended by com.partnersoft.v3x.geometry.single.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.


Field Summary
 float angle
           
 float currentRemainingLength
           
 int currentSegment
           
 float length
           
 int numSegments
           
 Polyline polyline
           
 float segmentEndX
           
 float segmentEndY
           
 float segmentStartX
           
 float segmentStartY
           
 float x
           
 float y
           
 
Constructor Summary
PolylineFollower(Polyline polly)
           
 
Method Summary
 void advance(double distance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

polyline

public Polyline polyline

x

public float x

y

public float y

angle

public float angle

currentSegment

public int currentSegment

numSegments

public int numSegments

currentRemainingLength

public float currentRemainingLength

segmentStartX

public float segmentStartX

segmentStartY

public float segmentStartY

segmentEndX

public float segmentEndX

segmentEndY

public float segmentEndY

length

public float length
Constructor Detail

PolylineFollower

public PolylineFollower(Polyline polly)
Method Detail

advance

public void advance(double distance)