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

            storeResult.Value = (float)wrapped_owner.dot(new OpenCVForUnity.CoreModule.Point3((double)p_x.Value, (double)p_y.Value, (double)p_z.Value));
        }
Exemplo n.º 2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Point3))
            {
                LogError("owner is not initialized. Add Action \"newPoint3\".");
                return;
            }
            OpenCVForUnity.CoreModule.Point3 wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point3, OpenCVForUnity.CoreModule.Point3>(owner);

            if (!(p.Value is OpenCVForUnityPlayMakerActions.Point3))
            {
                LogError("p is not initialized. Add Action \"newPoint3\".");
                return;
            }
            OpenCVForUnity.CoreModule.Point3 wrapped_p = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point3, OpenCVForUnity.CoreModule.Point3>(p);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Double();
            }
            ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.dot(wrapped_p);
        }