Compare two vectors

Compare two vectors
 1# This Example shows how to compare two vectors
 2# within impacts tolerances.
 3
 4# Create a local variable for the impact.creator object
 5c = impact.creator
 6
 7# Create three vectors
 8v1 = c.vector(100,200)
 9v2 = c.vector(100,300)
10v3 = c.vector(100,200)
11
12# Create a local variable for the output toolbox
13ot = impact.gui.output_toolbox
14
15# Compare vectors v1 and v2
16ot.add("This should be False: " + str(v1.equals(v2)))
17
18# Compare vectors v and v3
19ot.add("This should be True: " + str(v1.equals(v3)))
20
21