public FingerPreprocessed(Finger finger) { Foldness = finger.Foldness; DeltaTipJt = GetDeltaPoint(finger.JointsPosition[0], finger.JointsPosition[1]); DeltaJtJt = GetDeltaPoint(finger.JointsPosition[1], finger.JointsPosition[2]); DeltaJtBase = GetDeltaPoint(finger.JointsPosition[3], finger.JointsPosition[3]); DeltaBaseCenter = GetDeltaPoint(finger.JointsPosition[4], finger.JointsPosition[0]); DeltaTipJtImage = GetDeltaPoint(finger.JointsImagePosition[0], finger.JointsImagePosition[1]); DeltaJtJtImage = GetDeltaPoint(finger.JointsImagePosition[1], finger.JointsImagePosition[2]); DeltaJtBaseImage = GetDeltaPoint(finger.JointsImagePosition[3], finger.JointsImagePosition[3]); DeltaBaseCenterImage = GetDeltaPoint(finger.JointsImagePosition[4], finger.JointsImagePosition[0]); OrientationTip = finger.JointsOrientation[0]; OrientationJt2 = finger.JointsOrientation[1]; OrientationJt1 = finger.JointsOrientation[2]; OrientationBase = finger.JointsOrientation[3]; }
private string PopulateFingerRotationDataToString(Point4DF32 finger) { string result = finger.w.ToString() + ", " + finger.x.ToString() + ", " + finger.y.ToString() + ", " + finger.z.ToString(); return(result); }
private string PopulateFingerOrientationDataToString(Point4DF32 finger) { string result = Math.Round(finger.w, 3).ToString(ci) + "," + Math.Round(finger.x, 3).ToString(ci) + "," + Math.Round(finger.y, 3).ToString(ci) + "," + Math.Round(finger.z, 3).ToString(ci); return(result); }