Added scalar to matrix conversion.

This commit is contained in:
James Goppert
2016-02-26 05:56:21 -05:00
parent 6974f97b1c
commit 2d27cd79d3
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -49,6 +49,12 @@ public:
return _value;
}
operator Matrix<Type, 1, 1>() const {
Matrix<Type, 1, 1> m;
m(0, 0) = _value;
return m;
}
private:
Type _value;