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;
}