Share via


HandPointer.GetPosition Method

Kinect for Windows 1.7, 1.8

Returns the current position of the hand pointer with respect to the boundaries of the given Kinect control.

Syntax

public Point GetPosition (
         UIElement relativeTo
)

Parameters

  • relativeTo
    Type: UIElement
    The Kinect control to examine.

Return Value

Type: Point
Returns the relative position of the hand pointer with respect to the given Kinect control. Note that this is NOT a standard Windows (x,y) point, but is scaled on a [0.0, 1.0] scale on each axis with respect to the boundaries of the Kinect control. For example, (0.0, 0.0) refers to the upper right hand corner of the control, while (1.0, 1.0) refers to the lower right hand corner of the control.

Requirements

Namespace: Microsoft.Kinect.Toolkit.Controls

Assembly: Microsoft.Kinect.Toolkit.Controls (in microsoft.kinect.toolkit.controls.dll)

See Also

Reference

HandPointer Class
HandPointer Members
Microsoft.Kinect.Toolkit.Controls Namespace