public static object Transform_WiimoteLib_Proxy_IRState_WiimoteLib_IRState(object transformObj)
 {
     WiimoteLib.IRState target = new WiimoteLib.IRState();
     WiimoteLib.Proxy.IRState from = (WiimoteLib.Proxy.IRState)transformObj;
     target.Mode = (WiimoteLib.IRMode)((System.Byte)from.Mode);
     target.RawX1 = from.RawX1;
     target.RawX2 = from.RawX2;
     target.RawY1 = from.RawY1;
     target.RawY2 = from.RawY2;
     target.Size1 = from.Size1;
     target.Size2 = from.Size2;
     target.Found1 = from.Found1;
     target.Found2 = from.Found2;
     target.X1 = from.X1;
     target.X2 = from.X2;
     target.Y1 = from.Y1;
     target.Y2 = from.Y2;
     return target;
 }
        public static object Transform_WiimoteLib_Proxy_IRState_TO_WiimoteLib_IRState(object transformFrom)
        {
            WiimoteLib.IRState target = new WiimoteLib.IRState();
            WiimoteLib.Proxy.IRState from = (WiimoteLib.Proxy.IRState)transformFrom;
            target.Mode = (WiimoteLib.IRMode)((System.Byte)from.Mode);

            // copy WiimoteLib.IRSensor[] target.IRSensors = from.IRSensors
            if (from.IRSensors != null)
            {
                target.IRSensors = new WiimoteLib.IRSensor[from.IRSensors.GetLength(0)];

                for (int d0 = 0; d0 < from.IRSensors.GetLength(0); d0++)
                    target.IRSensors[d0] = (WiimoteLib.IRSensor)Transform_WiimoteLib_Proxy_IRSensor_TO_WiimoteLib_IRSensor(from.IRSensors[d0]);
            }
            target.RawMidpoint = (WiimoteLib.Point)Transform_WiimoteLib_Proxy_Point_TO_WiimoteLib_Point(from.RawMidpoint);
            target.Midpoint = (WiimoteLib.PointF)Transform_WiimoteLib_Proxy_PointF_TO_WiimoteLib_PointF(from.Midpoint);
            return target;
        }
 public static object Transform_WiimoteLib_Proxy_IRState_TO_WiimoteLib_IRState(object transformFrom)
 {
     WiimoteLib.IRState target = new WiimoteLib.IRState();
     WiimoteLib.Proxy.IRState from = (WiimoteLib.Proxy.IRState)transformFrom;
     target.Mode = (WiimoteLib.IRMode)((System.Byte)from.Mode);
     target.RawX1 = from.RawX1;
     target.RawX2 = from.RawX2;
     target.RawX3 = from.RawX3;
     target.RawX4 = from.RawX4;
     target.RawY1 = from.RawY1;
     target.RawY2 = from.RawY2;
     target.RawY3 = from.RawY3;
     target.RawY4 = from.RawY4;
     target.Size1 = from.Size1;
     target.Size2 = from.Size2;
     target.Size3 = from.Size3;
     target.Size4 = from.Size4;
     target.Found1 = from.Found1;
     target.Found2 = from.Found2;
     target.Found3 = from.Found3;
     target.Found4 = from.Found4;
     target.X1 = from.X1;
     target.X2 = from.X2;
     target.X3 = from.X3;
     target.X4 = from.X4;
     target.Y1 = from.Y1;
     target.Y2 = from.Y2;
     target.Y3 = from.Y3;
     target.Y4 = from.Y4;
     target.RawMidX = from.RawMidX;
     target.RawMidY = from.RawMidY;
     target.MidX = from.MidX;
     target.MidY = from.MidY;
     return target;
 }