src/mol/bond.js
function(out) { 
      if (!out) {
        out = vec3.create();
      }
      vec3.add(out, self.atom_one.pos(), self.atom_two.pos());
      vec3.scale(out, out, 0.5);
      return out;
    }
function(out) { 
      if (!out) {
        out = vec3.create();
      }
      vec3.add(out, self.atom_one.pos(), self.atom_two.pos());
      vec3.scale(out, out, 0.5);
      return out;
    }
function ( out ) { if ( ! out ) { out = vec3 . create ( ) ; } vec3 . add ( out , self . atom_one . pos ( ) , self . atom_two . pos ( ) ) ; vec3 . scale ( out , out , 0.5 ) ; return out ; }
calculates the mid-point between the two atom positions
calculates the mid - point between the two atom positions