diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h
index d6e3f5a4c1cbade978b8eb455a8d82e21ec3788b..1a58d4f2465bfc033ab639e8894ee71c699238de 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
 	 */