simplifying PVector heading(), fixes #3511

This commit is contained in:
Daniel Shiffman
2015-07-28 16:06:39 +01:00
parent 8fe5820409
commit ecae4472d3
+2 -2
View File
@@ -874,8 +874,8 @@ public class PVector implements Serializable {
* @brief Calculate the angle of rotation for this vector
*/
public float heading() {
float angle = (float) Math.atan2(-y, x);
return -1*angle;
float angle = (float) Math.atan2(y, x);
return angle;
}