File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -581,8 +581,10 @@ impl f32 {
581
581
unsafe { cmath:: cbrtf ( self ) }
582
582
}
583
583
584
- /// Calculates the length of the hypotenuse of a right-angle triangle given
585
- /// legs of length `x` and `y`.
584
+ /// Compute the distance between the origin and a point (`x`, `y`) on the
585
+ /// Euclidean plane. Equivalently, compute the length of the hypotenuse of a
586
+ /// right-angle triangle with other sides having length `x.abs()` and
587
+ /// `y.abs()`.
586
588
///
587
589
/// # Examples
588
590
///
Original file line number Diff line number Diff line change @@ -583,8 +583,10 @@ impl f64 {
583
583
unsafe { cmath:: cbrt ( self ) }
584
584
}
585
585
586
- /// Calculates the length of the hypotenuse of a right-angle triangle given
587
- /// legs of length `x` and `y`.
586
+ /// Compute the distance between the origin and a point (`x`, `y`) on the
587
+ /// Euclidean plane. Equivalently, compute the length of the hypotenuse of a
588
+ /// right-angle triangle with other sides having length `x.abs()` and
589
+ /// `y.abs()`.
588
590
///
589
591
/// # Examples
590
592
///
You can’t perform that action at this time.
0 commit comments