/* * call-seq: * dvector.each3(other1, other2) {|x,y, z| block } * * Calls <i>block</i> once for each element in _dvector_, passing that * element as a parameter along with the corresponding element from the _other1_ and _other2_ vectors. * The three vectors must be the same length. * * a = Dvector[ 1, 0, -1 ] * b = Dvector[ 3, 4, 5 ] * c = Dvector[ 6, 9, 2 ] * a.each3(b, c) {|x,y,z| print "(", x ",", y, ", ", z, ") " } * * produces: * * (1,3,6) (0,4,9) (-1,5,2) */ VALUE dvector_each3(VALUE ary, VALUE ary2, VALUE ary3) {