Angle between lines🔗

Calculates the angle between two lines.

Inputs🔗

  • line1: First line as a 2×2 matrix containing two points on the line as rows.

  • line2: Second line as a 2×2 matrix containing two points on the line as rows.

Outputs🔗

  • angle: The angle, in degrees. If the input lines are not valid (the two points are the same), the angle will be NaN.