Kinect.KinectManager.MapDepthFrameToColorCoords C# (CSharp) Method

MapDepthFrameToColorCoords() public method

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

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

                bResult = KinectInterop.MapDepthFrameToColorCoords(sensorData, ref avColorCoords);
            }

            return bResult;
        }
KinectManager