예제 #1
0
    public Vector3 MapDepthPointToSpaceCoords(KinectInterop.SensorData sensorData, Vector2 depthPos, ushort depthVal)
    {
//		Vector3 spacePos = Vector3.zero;
//
//		float spaceX = 0f, spaceY = 0f, spaceZ = 0f;
//		int hr = ConvertDepthToWorld(depthPos.x, depthPos.y, depthVal, out spaceX, out spaceY, out spaceZ);
//
//		if(hr == 0)
//		{
//			spacePos = new Vector3(spaceX / 1000f, spaceY / 1000f, spaceZ / 1000f);
//		}

        Vector3 spacePos = coordMapper != null?coordMapper.MapDepthPointToSpaceCoords(depthPos, depthVal) : Vector3.zero;

        return(spacePos);
    }
    public Vector3 MapDepthPointToSpaceCoords(KinectInterop.SensorData sensorData, Vector2 depthPos, ushort depthVal)
    {
        Vector3 spacePos = coordMapper != null?coordMapper.MapDepthPointToSpaceCoords(depthPos, depthVal) : Vector3.zero;

        return(spacePos);
    }