public static Vector listToVector(List<Double> list){
  if (list.size() == 3) {
    return new Vector(list.get(0),list.get(1),list.get(2));
  }
  return new Vector(0,0,0);
}

public static Vector listToVector ( List < Double > list ) { if ( list . size ( ) == 3 ) { return new Vector ( list . get ( 0 ) , list . get ( 1 ) , list . get ( 2 ) ) ; } return new Vector ( 0 , 0 , 0 ) ; }
create a vector from a list of doubles . if the list is invalid , a zero vector is returned .
