diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-24 01:09:12 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-24 01:09:12 +0100 |
commit | f96af48ad82f1ddfab1402ca5c6eafd82af2b217 (patch) | |
tree | 0eea4b97d600460f386cb82611ce40d3ccf1bc7d /include/YAGE/Math/matrix.hpp | |
parent | 5403490b941f7c031bf1aafdb91b1098f69edbf2 (diff) | |
download | YAGE-f96af48ad82f1ddfab1402ca5c6eafd82af2b217.tar.gz YAGE-f96af48ad82f1ddfab1402ca5c6eafd82af2b217.zip |
Adding rules to clang-format.
Diffstat (limited to 'include/YAGE/Math/matrix.hpp')
-rw-r--r-- | include/YAGE/Math/matrix.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/YAGE/Math/matrix.hpp b/include/YAGE/Math/matrix.hpp index 249edcc7..e2dd1944 100644 --- a/include/YAGE/Math/matrix.hpp +++ b/include/YAGE/Math/matrix.hpp @@ -31,7 +31,8 @@ namespace yage { -template <int Rows, int Cols, class Type> class Matrix; +template <int Rows, int Cols, class Type> +class Matrix; /** @internal Namespace for internal details. * @@ -51,7 +52,8 @@ namespace detail * * Internal Row class to return a value in the row of the matrix. */ -template <int Rows, int Cols, class Type> class Row +template <int Rows, int Cols, class Type> +class Row { private: Matrix<Rows, Cols, Type> *parent_; @@ -85,7 +87,8 @@ public: * This is the base matrix class that can be used by all the other matrix * like data structures. */ -template <int Rows = 4, int Cols = 4, class Type = double> class Matrix +template <int Rows = 4, int Cols = 4, class Type = double> +class Matrix { // friended with the row class so that it can access protected member data friend class detail::Row<Rows, Cols, Type>; @@ -323,7 +326,8 @@ public: * * Two dimensional vector class. */ -template <class Type = double> class Vector2 : public Vector<2, Type> +template <class Type = double> +class Vector2 : public Vector<2, Type> { public: Vector2<Type>() : Vector<2, Type>() {} |