vchgline.sml

  Download

More scripts: Vector

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# vchgline.sml
vector V;
array numeric xPoints[10], yPoints[10];
numeric lineNum, numPoints;
# set up new points for line change
xPoints[1] = 10;
yPoints[1] = 10;
xPoints[2] = 40;
yPoints[2] = 30;
xPoints[3] = 70;
yPoints[3] = 90;
xPoints[4] = 125;
yPoints[4] = 115;
numPoints = 4;
GetOutputVector(V, "VectorToolkit");
# add a line 
VectorAddLine(V, numPoints, xPoints, yPoints);
# now change a middle point
xPoints[2] = 50;
yPoints[2] = 45;
lineNum = 1;
VectorChangeLine(V, lineNum, numPoints, xPoints, yPoints);