Sdílet prostřednictvím


FloatMath.Hypot(Single, Single) Method

Definition

Returns sqrt(x<sup>2</sup>+y<sup>2</sup>).

[Android.Runtime.Register("hypot", "(FF)F", "")]
public static float Hypot (float x, float y);
[<Android.Runtime.Register("hypot", "(FF)F", "")>]
static member Hypot : single * single -> single

Parameters

x
Single

a float number

y
Single

a float number

Returns

the hypotenuse

Attributes

Remarks

Returns sqrt(x<sup>2</sup>+y<sup>2</sup>).

Java documentation for android.util.FloatMath.hypot(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to