#include "square_mat_point.h"
#include "base/user_info.h"

using bdm::UI;

void square_mat_point::from_setting ( const Setting &set ) {
    UI::get ( matrix, set, "matrix", UI::compulsory );
    UI::get ( vector, set, "vector", UI::compulsory );
    UI::get ( scalar, set, "scalar", UI::compulsory );
}

void square_mat_point::to_setting ( Setting &set ) const {
    Setting &number_setting = set.add ( "scalar", Setting::TypeFloat );
    number_setting = scalar;

    UI::save ( vector, set, "vector" );
    UI::save ( matrix, set, "matrix" );
}

