Java.Lang.StrictMath.Hypot Method
Returns sqrt(x2+y2).

Syntax

[Android.Runtime.Register("hypot", "(DD)D", "")]
public static double Hypot (double x, double y)

Parameters

x
a double number.
y
a double number.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns sqrt(x2+y2). The final result is without medium underflow or overflow.

Special cases:

  • hypot(+infinity, (anything including NaN)) = +infinity
  • hypot(-infinity, (anything including NaN)) = +infinity
  • hypot((anything including NaN), +infinity) = +infinity
  • hypot((anything including NaN), -infinity) = +infinity
  • hypot(NaN, NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1