Fix scale transformation matrix
This commit is contained in:
parent
5ce414c27f
commit
f18fbfdcdb
1 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ namespace psemek::geom
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
matrix<T, N, N + 1> scale<T, N>::affine_matrix() const
|
matrix<T, N, N + 1> scale<T, N>::affine_matrix() const
|
||||||
{
|
{
|
||||||
auto result = matrix<T, N, N + 1>::zero();
|
auto result = matrix<T, N, N + 1>::identity();
|
||||||
fill_matrix(result);
|
fill_matrix(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -60,7 +60,7 @@ namespace psemek::geom
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
matrix<T, N, N> scale<T, N>::linear_matrix() const
|
matrix<T, N, N> scale<T, N>::linear_matrix() const
|
||||||
{
|
{
|
||||||
auto result = matrix<T, N, N>::zero();
|
auto result = matrix<T, N, N>::identity();
|
||||||
fill_matrix(result);
|
fill_matrix(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -74,7 +74,7 @@ namespace psemek::geom
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
matrix<T, N + 1, N + 1> scale<T, N>::homogeneous_matrix() const
|
matrix<T, N + 1, N + 1> scale<T, N>::homogeneous_matrix() const
|
||||||
{
|
{
|
||||||
auto result = matrix<T, N + 1, N + 1>::zero();
|
auto result = matrix<T, N + 1, N + 1>::identity();
|
||||||
fill_matrix(result);
|
fill_matrix(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue