// Methods

        /// <summary>
        /// Updates the serialized properties from the non serialized properties.
        /// </summary>
        public void UpdateSerializedProperties()
        {
            RotationVectorValues = new double[3] {
                RotationVector.Get(0), RotationVector.Get(1), RotationVector.Get(2)
            };
            TranslationVectorValues = new double[3] {
                TranslationVector.Get(0), TranslationVector.Get(1), TranslationVector.Get(2)
            };
        }
Example #2
0
      // Methods

      /// <summary>
      /// Update the serialized properties from the non serialized properties.
      /// </summary>
      public void UpdateSerializedProperties()
      {
        RotationVectorValues = new double[3] { RotationVector.Get(0), RotationVector.Get(1), RotationVector.Get(2) };
        TranslationVectorValues = new double[3] { TranslationVector.Get(0), TranslationVector.Get(1), TranslationVector.Get(2) };

        RotationMatricesType = RotationMatrices[0].Type();
        RotationMatricesValues = new double[CameraNumber][][];
        CameraParameters.UpdatePropertyValues(RotationMatrices, RotationMatricesValues);

        NewCameraMatricesType = NewCameraMatrices[0].Type();
        NewCameraMatricesValues = new double[CameraNumber][][];
        CameraParameters.UpdatePropertyValues(NewCameraMatrices, NewCameraMatricesValues);
      }