Skip to content

Commit

Permalink
Update analyzer-comments/crystal/darts/hypot.md
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Good <[email protected]>
  • Loading branch information
meatball133 and IsaacG authored Aug 8, 2024
1 parent c0f5aa3 commit 77b4e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer-comments/crystal/darts/hypot.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Pow

Using `pow`, `sqrt` or `**` is totally valid and can be necessary in many situations.
However when wanting a distance in 2d space we can use the [`hypot` method][hypot] which returns the hypotenuse of the x and y lengths.
However when we want a distance in Cartesian space we can use the [`hypot` method][hypot] which returns the hypotenuse of a right angle triangle with sides x and y.

```crystal
# Rather than:
Expand Down

0 comments on commit 77b4e71

Please sign in to comment.