Skip to content

Commit

Permalink
Merge pull request #7324 from asukaminato0721/vec-dist-doc
Browse files Browse the repository at this point in the history
add usage of dist
  • Loading branch information
davepagurek authored Oct 20, 2024
2 parents 816b4c3 + a552c9e commit 5c906c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/p5.Vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -1694,8 +1694,8 @@ p5.Vector = class {
* // Style the text.
* textAlign(CENTER);
*
* // Display the magnitude.
* let m = floor(v3.mag());
* // Display the magnitude. The same as floor(v3.mag());
* let m = floor(p5.Vector.dist(v1, v2));
* text(m, 50, 75);
* }
*
Expand Down

0 comments on commit 5c906c2

Please sign in to comment.