Cómo encontrar ángulo entre dos puntos
let angle = Math.atan2( y2 - y1, x2 - x1 ) * ( 180 / Math.PI )
NikDaOverlord
let angle = Math.atan2( y2 - y1, x2 - x1 ) * ( 180 / Math.PI )
double angle = atan2(y2 - y1, x2 - x1) * 180 / PI;".
PVector v1 = new PVector(10, 20);
PVector v2 = new PVector(60, 80);
float a = PVector.angleBetween(v1, v2);
println(degrees(a)); // Prints "10.304827"
double angle = atan2(y2 - y1, x2 - x1) * 180 / PI;".