Skip to content
Snippets Groups Projects
Commit 3d5458f7 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

add setCoords() in TemplatePoint class

parent d4b14df2
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,13 @@ public: ...@@ -78,6 +78,13 @@ public:
return _x.data(); return _x.data();
} }
/** set the coordinates of the point */
void setCoords (const T* coords)
{
for (unsigned i=0; i<DIM; i++)
_x[i] = coords[i];
}
/** write point coordinates into stream (used from operator<<) /** write point coordinates into stream (used from operator<<)
* \param os a standard output stream * \param os a standard output stream
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment