v2ptline.sml

  Download

More scripts: Vector

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# v2ptline.sml
clear();
vector V;
numeric numLines;
GetOutputVector(V, "VectorToolkit");
numLines = NumVectorLines(V);
print("number of lines: ", numLines);
# add two lines
VectorAddTwoPointLine(V, 0, 0, 25, 25);
VectorAddTwoPointLine(V, 50, 5, 100, 90);
numLines = NumVectorLines(V);
print("number of lines: ", numLines);