Kinect.FacetrackingManager.GetShapeUnit C# (CSharp) Method

GetShapeUnit() public method

Gets the shape unit value at given index, or 0 if the index is invalid.
public GetShapeUnit ( KinectInterop faceShapeKey ) : float
faceShapeKey KinectInterop Face shape unit.
return float
        public float GetShapeUnit(KinectInterop.FaceShapeDeformations faceShapeKey)
        {
            if (dictSU.ContainsKey(faceShapeKey))
            {
                return dictSU[faceShapeKey];
            }

            return 0.0f;
        }