public PointF ConvertHandCoordinatesToDepth(Point3D depth) { float pX, pY; NiTE.throwIfError(ConvertHandCoordinatesToDepth((float)depth.X, (float)depth.Y, (float)depth.Z, out pX, out pY)); return(new PointF(pX, pY)); }
public HandTrackerFrameRef readFrame() { IntPtr fHandle; NiTE.throwIfError(HandTracker_readFrame(this.Handle, out fHandle)); return(new HandTrackerFrameRef(fHandle)); }
public PointF ConvertDepthCoordinatesToJoint(Point3D depth) { float pX, pY; NiTE.throwIfError(ConvertDepthCoordinatesToJoint((int)depth.X, (int)depth.Y, (int)depth.Z, out pX, out pY)); return(new PointF(pX, pY)); }
public static HandTracker Create(Device device = null) { IntPtr deviceHandle = IntPtr.Zero; if (device != null && device.isValid) { deviceHandle = device.Handle; } IntPtr handle; NiTE.throwIfError(HandTracker_create(out handle, deviceHandle)); HandTracker ut = new HandTracker(handle); ut.handler_events = HandTracker_RegisterListener(handle, ut.internal_listener); return(ut); }