Skip to content

Commit 28fdfe1

Browse files
committed
format
1 parent 802f3ed commit 28fdfe1

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/r4/matrix.hpp

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ class matrix :
115115
*/
116116
template <typename enable_type = component_type>
117117
constexpr matrix(
118-
const quaternion<std::enable_if_t<num_rows == num_columns&&(num_rows == 3 || num_rows == 4), enable_type>>& quat
118+
const quaternion< //
119+
std::enable_if_t<
120+
num_rows == num_columns && (num_rows == 3 || num_rows == 4), //
121+
enable_type //
122+
> //
123+
>& quat
119124
) noexcept
120125
{
121126
this->set(quat);
@@ -209,7 +214,12 @@ class matrix :
209214
*/
210215
template <typename enable_type = component_type>
211216
matrix& set(
212-
const quaternion<std::enable_if_t<num_rows == num_columns&&(num_rows == 3 || num_rows == 4), enable_type>>& quat
217+
const quaternion< //
218+
std::enable_if_t<
219+
num_rows == num_columns && (num_rows == 3 || num_rows == 4), //
220+
enable_type //
221+
> //
222+
>& quat
213223
) noexcept
214224
{
215225
// Quaternion to matrix conversion:
@@ -912,7 +922,12 @@ class matrix :
912922
*/
913923
template <typename enable_type = component_type>
914924
matrix& rotate(
915-
const quaternion<std::enable_if_t<num_rows == num_columns&&(num_rows == 3 || num_rows == 4), enable_type>>& q
925+
const quaternion< //
926+
std::enable_if_t<
927+
num_rows == num_columns && (num_rows == 3 || num_rows == 4), //
928+
enable_type //
929+
> //
930+
>& q
916931
) noexcept
917932
{
918933
return this->operator*=(matrix<component_type, num_rows, num_columns>(q));

0 commit comments

Comments
 (0)