From 3d5458f7c9f67352eb41c1cff55bb335de670cf0 Mon Sep 17 00:00:00 2001 From: Norihiro Watanabe <norihiro.watanabe@ufz.de> Date: Mon, 27 Apr 2015 12:45:07 +0200 Subject: [PATCH] add setCoords() in TemplatePoint class --- MathLib/TemplatePoint.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h index d6e3f5a4c1c..1a58d4f2465 100644 --- a/MathLib/TemplatePoint.h +++ b/MathLib/TemplatePoint.h @@ -78,6 +78,13 @@ public: 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<<) * \param os a standard output stream */ -- GitLab