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(); }
public RotatedRect(Point c, Size s, double a) { this.center = c.clone(); this.size = s.clone(); this.angle = a; }