Gets the length of the hypotenuse of a right-angled
triangle with sides of specified length.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Quad Hypot(
Quad a,
Quad b
)
Public Shared Function Hypot (
a As Quad,
b As Quad
) As Quad
public:
static Quad Hypot(
Quad a,
Quad b
)
static member Hypot :
a : Quad *
b : Quad -> Quad
Parameters
- a
- Type: Extreme.MathematicsQuad
The length of the first side. - b
- Type: Extreme.MathematicsQuad
The length of the second side.
Return Value
Type:
QuadThe length of the hypotenuse.
The calculation of the hypotenuse
involves squaring the arguments. Unless special
precautions are taken, an overflow may occur
during the calculations even if the result is within
acceptable bounds.
Reference