Kinect.KinectManager.MapColorFrameToDepthCoords C# (CSharp) Method

MapColorFrameToDepthCoords() public method

Maps the color frame to depth coordinates.
public MapColorFrameToDepthCoords ( Vector2 &avDepthCoords ) : bool
avDepthCoords UnityEngine.Vector2 Buffer for color-to-depth coordinates.
return bool
        public bool MapColorFrameToDepthCoords(ref Vector2[] avDepthCoords)
        {
            bool bResult = false;

            if (kinectInitialized && sensorData.colorImage != null && sensorData.depthImage != null)
            {
                if (avDepthCoords == null || avDepthCoords.Length == 0)
                {
                    avDepthCoords = new Vector2[sensorData.colorImageWidth * sensorData.colorImageWidth];
                }

                bResult = KinectInterop.MapColorFrameToDepthCoords(sensorData, ref avDepthCoords);
            }

            return bResult;
        }
KinectManager