class KNOT2NDATA |
---|
**** |
---------------__Knot[]_-->__NData[]_-------------------------- Note. Let p: prime (> maxY) q: (p,q)=1 (coprime). r: rx= p*x+q*y ry= ythen for points (x1,y1) and (x2,y2), if rx1=rx2 then x1=x2, y1=y2.Because, x and y are integer.This means that points in RKnot[] have difference x-coordinates each other. |
Knot2NData(knot:KNOT, inout NData:NDATA):BOOL |
---|
checkRegular(inout Knot:KNOT, inout SortX:ARRAY{CARD}):BOOL |
---|
**** | Check if Knot[] is in a standard/regular position.Especially, it check condition around crossing points.And it make a table of critical points SortX[]. |
countLowerEdge(Knot:KNOT, kp:CARD):CARD |
---|
errMsg(n:CARD) |
---|
makeNData(Knot:KNOT, SortX:ARRAY{CARD}, inout NData:NDATA):BOOL |
---|
rotToNormal(inout Knot:KNOT, inout SortX:ARRAY{CARD}):BOOL |
---|
**** | p be prime>(knot Height) and not overflow on p*(knot x coord) |
x_is_lt(Knot:KNOT, i,j:CARD):BOOL |
---|
**** | sorting order |