void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Size))
            {
                LogError("owner is not initialized. Add Action \"newSize\".");
                return;
            }
            OpenCVForUnity.CoreModule.Size wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Size))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Size();
            }
            ((OpenCVForUnityPlayMakerActions.Size)storeResult.Value).wrappedObject = wrapped_owner.clone();
        }
Ejemplo n.º 2
0
 public RotatedRect(Point c, Size s, double a)
 {
     this.center = c.clone();
     this.size   = s.clone();
     this.angle  = a;
 }