deepfold.utils.geometry.vector.dihedral_angle

deepfold.utils.geometry.vector.dihedral_angle(a: Vec3Array, b: Vec3Array, c: Vec3Array, d: Vec3Array) float | Tensor[source]

Computes torsion angle for a quadruple of points.

For points (a, b, c, d), this is the angle between the planes defined by points (a, b, c) and (b, c, d). It is also known as the dihedral angle.

Parameters:
  • a – A Vec3Array of coordinates.

  • b – A Vec3Array of coordinates.

  • c – A Vec3Array of coordinates.

  • d – A Vec3Array of coordinates.

Returns:

[-pi, pi].

Return type:

A tensor of angles in radians