oh right, this is Java

This commit is contained in:
Ben Fry
2021-06-14 13:08:12 -04:00
parent 4d3e7068be
commit bc828da071
+2 -2
View File
@@ -870,8 +870,8 @@ public class PVector implements Serializable {
public PVector setHeading(float angle) {
float m = mag();
x = m * Math.cos(a);
y = m * Math.sin(a);
x = (float) (m * Math.cos(angle));
y = (float) (m * Math.sin(angle));
return this;
}