Name

angleBetween()

Examples
v1 = PVector(10, 20)
v2 = PVector(60, 80)
a = PVector.angleBetween(v1, v2)
print(degrees(a))  # Prints "10.304845809936523"
Description Calculates and returns the angle (in radians) between two vectors.
Syntax
.angleBetween(v1, v2)
Parameters
v1PVector: the x, y, and z components of a PVector
v2PVector: the x, y, and z components of a PVector

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.