Skip to content

Commit a605d99

Browse files
committed
fromAngle returns a 2D Vector
1 parent f76b2b6 commit a605d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/p5.Vector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,7 @@ class Vector {
31553155
if (typeof length === 'undefined') {
31563156
length = 1;
31573157
}
3158-
return new Vector(length * Math.cos(angle), length * Math.sin(angle), 0);
3158+
return new Vector(length * Math.cos(angle), length * Math.sin(angle));
31593159
}
31603160

31613161
/**

0 commit comments

Comments
 (0)