24 #include <utility/io/izstream.hh>
25 #include <utility/string_util.hh>
28 namespace conformation {
40 std::vector< std::string > coords,
43 assert( coords.size() >= 3 );
45 assert( split.size() == 3 );
46 Vector x( ( static_cast<core::Real>( std::atof( split[1].c_str() ) ) ),
47 ( static_cast<core::Real>( std::atof( split[2].c_str() ) ) ),
48 ( static_cast<core::Real>( std::atof( split[3].c_str() ) ) ) );
49 split = utility::string_split( coords[ coord_start ],
',' );
50 Vector y( ( static_cast<core::Real>( std::atof( split[1].c_str() ) ) ),
51 ( static_cast<core::Real>( std::atof( split[2].c_str() ) ) ),
52 ( static_cast<core::Real>( std::atof( split[3].c_str() ) ) ) );
54 if ( coords.size() == 4 ) {
55 split = utility::string_split( coords[ coord_start +2 ],
',' );
56 origin =
Vector( ( static_cast<core::Real>( std::atof( split[1].c_str() ) ) ),
57 ( static_cast<core::Real>( std::atof( split[2].c_str() ) ) ),
58 ( static_cast<core::Real>( std::atof( split[3].c_str() ) ) ) );