vchgpt.sml

  Download

More scripts: Vector

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# vchgpnt.sml
clear();
vector V;
array numeric xPoints[10], yPoints[10];
numeric numPoints, pointNum;
GetOutputVector(V, "VectorToolkit");
numPoints = NumVectorPoints(V);
print("number of points: ", numPoints);
# add some points
VectorAddPoint(V, 10, 10);
VectorAddPoint(V, 35, 35);
VectorAddPoint(V, 50, 50);
numPoints = NumVectorPoints(V);
print("number of points: ", numPoints);
# now change the second point
pointNum = 2;
VectorChangePoint(V, pointNum, 25, 25);