root/library/tests/square_mat_point.cpp @ 1064

Revision 1064, 0.5 kB (checked in by mido, 14 years ago)

astyle applied all over the library

  • Property svn:eol-style set to native
RevLine 
[468]1#include "square_mat_point.h"
2#include "base/user_info.h"
3
4using bdm::UI;
5
[477]6void square_mat_point::from_setting ( const Setting &set ) {
[1064]7    UI::get ( matrix, set, "matrix", UI::compulsory );
8    UI::get ( vector, set, "vector", UI::compulsory );
9    UI::get ( scalar, set, "scalar", UI::compulsory );
[468]10}
11
[477]12void square_mat_point::to_setting ( Setting &set ) const {
[1064]13    Setting &number_setting = set.add ( "scalar", Setting::TypeFloat );
14    number_setting = scalar;
[468]15
[1064]16    UI::save ( vector, set, "vector" );
17    UI::save ( matrix, set, "matrix" );
[468]18}
Note: See TracBrowser for help on using the browser.