Class DistributedDelaunayClip.Edge
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistributedDelaunayClip.Edge
public DistributedDelaunayClip.Edge()
DistributedDelaunayClip.Edge
public DistributedDelaunayClip.Edge(double lfX,
double lfY)
DistributedDelaunayClip.Edge
public DistributedDelaunayClip.Edge(DistributedDelaunayClip.Edge src)
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)