text: user12686: The BioPython documentation shows the following:
  
  11.6.3 Measuring torsion angles Use the vector representation of the atomic coordinates, and the calc dihedral function from the Vector module:
  >>> vector1 = atom1.get_vector()
  >>> vector2 = atom2.get_vector()
  >>> vector3 = atom3.get_vector()
  >>> vector4 = atom4.get_vector()
  >>> angle = calc_dihedral(vector1, vector2, vector3, vector4)
  
  
  We know that a torsion angle between N-C-alpha and C-alpha-C planes.
  So, the minimum number of points required to form a plane is 3.
  Then, Why does BioPython require 4 vectors?
  
  user-1: To compute dihedral angles you require 4 atoms and hence for vectors to determine two planes (see this figure here) whose angle you want to measure - dihedral angle.
  You can also check Fig 55 from the GROMACS documentation
  https://manual.gromacs.org/documentation/current/reference-manual/analysis/bond-angle-dihedral.html
  Definition of (virtual) Cα backbone bond (κ) and torsion (τ) angles.
  from https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0215141.g002
  
  
  user2108: From wikipedia on torsion angles:
  
  A dihedral angle is the angle between two intersecting planes or half-planes. In chemistry, it is the clockwise angle between half-planes through two sets of three atoms, having two atoms in common.
  
  Two sets of three with two in common makes four total atoms.
  You are defining not one plane but two half-planes or planes.
  Wikipedia includes the following as an illustrative image:
  
  "Angle between two half-planes (α, β, green) in a third plane (pink) which cuts the line of intersection at right angles"
  In this image I interpret the atoms to be at the vertices of the planes, e.g. the two atoms that are in common between the two planes are those at the points of intersection of the planes, and the two other atoms extend the planes $\alpha$ and $\beta$.
  
original_text: 12686: <p>The BioPython documentation shows the following:</p>
  <blockquote>
  <p>11.6.3 Measuring torsion angles Use the vector representation of the atomic coordinates, and the calc dihedral function from the Vector module:</p>
  <pre><code>&gt;&gt;&gt; vector1 = atom1.get_vector()
  &gt;&gt;&gt; vector2 = atom2.get_vector()
  &gt;&gt;&gt; vector3 = atom3.get_vector()
  &gt;&gt;&gt; vector4 = atom4.get_vector()
  &gt;&gt;&gt; angle = calc_dihedral(vector1, vector2, vector3, vector4)
  </code></pre>
  </blockquote>
  <p>We know that a torsion angle between N-C-alpha and C-alpha-C planes.</p>
  <p>So, the minimum number of points required to form a plane is 3.</p>
  <p>Then, Why does BioPython require 4 vectors?</p>
   -1: <p>To compute dihedral angles you require 4 atoms and hence for vectors to determine two planes (<a href="https://foldit.fandom.com/wiki/Torsion_angle" rel="nofollow noreferrer">see this figure here</a>) whose angle you want to measure - dihedral angle.</p>
  <p>You can also check Fig 55 from the GROMACS documentation</p>
  <p><a href="https://manual.gromacs.org/documentation/current/reference-manual/analysis/bond-angle-dihedral.html" rel="nofollow noreferrer">https://manual.gromacs.org/documentation/current/reference-manual/analysis/bond-angle-dihedral.html</a></p>
  <p>Definition of (virtual) Cα backbone bond (κ) and torsion (τ) angles.
  from <a href="https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0215141.g002" rel="nofollow noreferrer">https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0215141.g002</a>
  <a href="https://i.stack.imgur.com/vfp3S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vfp3S.png" alt="from https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0215141.g002" /></a></p>
   2108: <p>From <a href="https://en.wikipedia.org/wiki/Dihedral_angle" rel="nofollow noreferrer">wikipedia</a> on torsion angles:</p>
  <blockquote>
  <p>A dihedral angle is the angle between two intersecting planes or half-planes. In chemistry, it is the clockwise angle between half-planes through two sets of three atoms, having two atoms in common.</p>
  </blockquote>
  <p>Two sets of three with two in common makes four total atoms.</p>
  <p>You are defining not one plane but two half-planes or planes.</p>
  <p>Wikipedia includes the following as an illustrative image:</p>
  <p><a href="https://i.stack.imgur.com/N5x9R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N5x9R.png" alt="Angle between two half-planes (α, β, green) in a third plane (pink) which cuts the line of intersection at right angles
  " /></a>
  &quot;Angle between two half-planes (α, β, green) in a third plane (pink) which cuts the line of intersection at right angles&quot;</p>
  <p>In this image I interpret the atoms to be at the vertices of the planes, e.g. the two atoms that are in common between the two planes are those at the points of intersection of the planes, and the two other atoms extend the planes <span class="math-container">$\alpha$</span> and <span class="math-container">$\beta$</span>.</p>
  