Skip to content
Snippets Groups Projects
Commit 400fa3b7 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MathLib] Constructor of TemplateVector3 needs a initializer list.

The TemplateVector3 is derived from TemplatePoint<T,N>. There isn't a
constructor taking 3 values for TemplatePoint. Instead of this a std::array
is used to initialize the TemplatePoint data structures. For this reason
the TemplateVector3 constructor that is taking two points to initialize
the internal data needs an initializer list.
parent bd44736d
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
{} {}
/** constructs a vector from the gien points */ /** constructs a vector from the gien points */
TemplateVector3(const MathLib::TemplatePoint<T> &a, const MathLib::TemplatePoint<T> &b) : TemplateVector3(const MathLib::TemplatePoint<T> &a, const MathLib::TemplatePoint<T> &b) :
MathLib::TemplatePoint<T>(b[0] - a[0], b[1] - a[1], b[2] - a[2]) MathLib::TemplatePoint<T>({b[0] - a[0], b[1] - a[1], b[2] - a[2]})
{} {}
~TemplateVector3() {} ~TemplateVector3() {}
......
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