code: public static double giveAngleBothMethods(IAtom from, IAtom to1, IAtom to2, boolean bool) {
          return giveAngleBothMethods(from.getPoint2d(), to1.getPoint2d(), to2.getPoint2d(), bool);
      }
docs: Gives the angle between two lines starting at atom from and going to to1
  and to2. If bool=false the angle starts from the middle line and goes from
  0 to PI or 0 to -PI if the to2 is on the left or right side of the line. If
  bool=true the angle goes from 0 to 2PI.
  
  @param  from  the atom to view from.
  @param  to1   first direction to look in.
  @param  to2   second direction to look in.
  @param  bool  true=angle is 0 to 2PI, false=angel is -PI to PI.
  @return       The angle in rad.