Skip to content

Commit 8d90c3d

Browse files
authored
Fix vertexProperty example
1 parent c39ad5c commit 8d90c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.Geometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ class Geometry {
17661766
* let geo;
17671767
*
17681768
* function cartesianToSpherical(x, y, z) {
1769-
* let r = sqrt(pow(x, x) + pow(y, y) + pow(z, z));
1769+
* let r = sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2));
17701770
* let theta = acos(z / r);
17711771
* let phi = atan2(y, x);
17721772
* return { theta, phi };

0 commit comments

Comments
 (0)