void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("owner is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Point)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Point(); } ((OpenCVForUnityPlayMakerActions.Point)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; }