Class DistributedDelaunayClip.Edge

java.lang.Object
  extended by DistributedDelaunayClip.Edge
All Implemented Interfaces:
CommLink.IChannelData, DistributedDelaunayClip.ClipGeom
Enclosing class:
DistributedDelaunayClip

public class DistributedDelaunayClip.Edge
extends java.lang.Object
implements CommLink.IChannelData, DistributedDelaunayClip.ClipGeom

Holds a (possible infinite, and possibly) empty edge in 2d)


Constructor Summary
DistributedDelaunayClip.Edge()
           
DistributedDelaunayClip.Edge(DistributedDelaunayClip.Edge src)
           
DistributedDelaunayClip.Edge(double lfX, double lfY)
           
 
Method Summary
 boolean CheckValid()
           
 boolean clipWith(DistributedDelaunayClip.Edge edgeToIsect)
          Performs clipping between this edge and edgeToIsect
 CommLink.IChannelData cloneData()
           
 boolean edgeValid()
           
 double getClosePtDist()
           
 double getClosePtDistSqrd()
           
 double[] getClosestPt()
           
 double[] getEdgeEnd(double lfMaxLen)
           
 double[] getEdgeEndClip(double lfMaxLen, double lfBigClip)
           
 double[] getEdgeStart(double lfMaxLen)
           
 double[] getEdgeStartClip(double lfMaxLen, double lfBigClip)
           
 int getId()
           
 double getIsect(DistributedDelaunayClip.Edge edgeToIsect)
          Finds length along this edge at which it intersects edgeToIsect.
 boolean isEndFinite()
           
 boolean isStartFinite()
           
 void setFromClosestPt()
           
 void setId(int nId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedDelaunayClip.Edge

public DistributedDelaunayClip.Edge()

DistributedDelaunayClip.Edge

public DistributedDelaunayClip.Edge(double lfX,
                                    double lfY)

DistributedDelaunayClip.Edge

public DistributedDelaunayClip.Edge(DistributedDelaunayClip.Edge src)
Method Detail

cloneData

public CommLink.IChannelData cloneData()
Specified by:
cloneData in interface CommLink.IChannelData

CheckValid

public boolean CheckValid()

setFromClosestPt

public void setFromClosestPt()

setId

public void setId(int nId)

getId

public int getId()

getIsect

public double getIsect(DistributedDelaunayClip.Edge edgeToIsect)
Finds length along this edge at which it intersects edgeToIsect. Doesn't check against start and end of edgeToIsect -- assumes it is infinite

Parameters:
edgeToIsect -
Returns:
length along this edge at which it intersects edgeToIsect

clipWith

public boolean clipWith(DistributedDelaunayClip.Edge edgeToIsect)
Performs clipping between this edge and edgeToIsect

Parameters:
edgeToIsect - edge to clip with (both edges clipped to each-other)
Returns:
"true" iff clipping occured.

edgeValid

public boolean edgeValid()

getEdgeStart

public double[] getEdgeStart(double lfMaxLen)

getEdgeStartClip

public double[] getEdgeStartClip(double lfMaxLen,
                                 double lfBigClip)

getClosestPt

public double[] getClosestPt()

isStartFinite

public boolean isStartFinite()

isEndFinite

public boolean isEndFinite()

getEdgeEnd

public double[] getEdgeEnd(double lfMaxLen)

getClosePtDistSqrd

public double getClosePtDistSqrd()

getClosePtDist

public double getClosePtDist()

getEdgeEndClip

public double[] getEdgeEndClip(double lfMaxLen,
                               double lfBigClip)