com.azalient.api.a.position
Interface ISegment


public interface ISegment

A line Segment P-Q. Each IPathway is made up of a sequence of segments like this.


Method Summary
 int index()
          The index of this segment in the sequence on the pathway.
 double length()
          The length of the segment, the distance PQ
 ISegment next()
          A reference to the next segmetn in the sequence on a pathway.
 IXyz p()
          The start point
 IXyz pqn()
          The unit-length vector defining the direction PQ
 IXyz q()
          The end point
 void recalc()
          Force this segment to be recalculated after moving P or Q
 

Method Detail

recalc

void recalc()
Force this segment to be recalculated after moving P or Q


index

int index()
The index of this segment in the sequence on the pathway.


length

double length()
The length of the segment, the distance PQ


p

IXyz p()
The start point


q

IXyz q()
The end point


pqn

IXyz pqn()
The unit-length vector defining the direction PQ


next

ISegment next()
A reference to the next segmetn in the sequence on a pathway. This is null for hte last segment.