Kinect.KinectGestures.SetWheelRotation C# (CSharp) Method

SetWheelRotation() private static method

private static SetWheelRotation ( long userId, GestureData &gestureData, Vector3 initialPos, Vector3 currentPos ) : void
userId long
gestureData GestureData
initialPos UnityEngine.Vector3
currentPos UnityEngine.Vector3
return void
        private static void SetWheelRotation(long userId, ref GestureData gestureData, Vector3 initialPos, Vector3 currentPos)
        {
            float angle = Vector3.Angle(initialPos, currentPos) * Mathf.Sign(currentPos.y - initialPos.y);
            gestureData.screenPos.z = angle;
        }