added setLength() method in VecmathUtils