Single.Hypot(Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.
public:
static float Hypot(float x, float y) = System::Numerics::IRootFunctions<float>::Hypot;
public static float Hypot (float x, float y);
static member Hypot : single * single -> single
Public Shared Function Hypot (x As Single, y As Single) As Single
Parameters
- x
- Single
The value to square and add to y
.
- y
- Single
The value to square and add to x
.
Returns
The square root of x
-squared plus y
-squared.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.