var vec1 = TESTLIB.Vector.create([1,2,3]);
var vec2 = TESTLIB.Vector.create([3,4,5]);
document.write( "vec1.length = " + vec1.length() + "<br>" );
document.write( "vec2.length = " + vec2.length() + "<br>" );
document.write( "vec1.count = " + vec1.count() + "<br>" );
document.write( "vec1 + vec2 = " + TESTLIB.VectorUtil.add(vec1,vec2) + "<br>" );
document.write( " length between vec1 and vec2 = " + TESTLIB.VectorUtil.distance(vec1,vec2) + "<br>" );
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0