Share via


Keyboard.Key.SquaredDistanceFrom(Int32, Int32) Method

Definition

Returns the square of the distance between the center of the key and the given point.

[Android.Runtime.Register("squaredDistanceFrom", "(II)I", "GetSquaredDistanceFrom_IIHandler")]
public virtual int SquaredDistanceFrom (int x, int y);
[<Android.Runtime.Register("squaredDistanceFrom", "(II)I", "GetSquaredDistanceFrom_IIHandler")>]
abstract member SquaredDistanceFrom : int * int -> int
override this.SquaredDistanceFrom : int * int -> int

Parameters

x
Int32

the x-coordinate of the point

y
Int32

the y-coordinate of the point

Returns

the square of the distance of the point from the center of the key

Attributes

Remarks

Returns the square of the distance between the center of the key and the given point.

Java documentation for android.inputmethodservice.Keyboard.Key.squaredDistanceFrom(int, int).

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