mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 21:00:42 +08:00
Add const keyword to multiply returning functions
This commit is contained in:
parent
8b17156f1d
commit
5c5202e960
@ -117,7 +117,7 @@ void TransformationMatrix::applyLeft(const TransformationMatrix &left)
|
|||||||
*this = temp;
|
*this = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransformationMatrix TransformationMatrix::multiplyLeft(const TransformationMatrix &left)
|
TransformationMatrix TransformationMatrix::multiplyLeft(const TransformationMatrix &left) const
|
||||||
{
|
{
|
||||||
return multiply(left, *this);
|
return multiply(left, *this);
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ void TransformationMatrix::applyRight(const TransformationMatrix &right)
|
|||||||
*this = temp;
|
*this = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransformationMatrix TransformationMatrix::multiplyRight(const TransformationMatrix &right)
|
TransformationMatrix TransformationMatrix::multiplyRight(const TransformationMatrix &right) const
|
||||||
{
|
{
|
||||||
return multiply(*this, right);
|
return multiply(*this, right);
|
||||||
}
|
}
|
||||||
|
@ -39,13 +39,13 @@ public:
|
|||||||
void applyLeft(const TransformationMatrix &left);
|
void applyLeft(const TransformationMatrix &left);
|
||||||
|
|
||||||
/// multiplies the parameter-matrix from the left (out=left*this)
|
/// multiplies the parameter-matrix from the left (out=left*this)
|
||||||
TransformationMatrix multiplyLeft(const TransformationMatrix &left);
|
TransformationMatrix multiplyLeft(const TransformationMatrix &left) const;
|
||||||
|
|
||||||
/// multiplies the parameter-matrix from the right (this=this*right)
|
/// multiplies the parameter-matrix from the right (this=this*right)
|
||||||
void applyRight(const TransformationMatrix &right);
|
void applyRight(const TransformationMatrix &right);
|
||||||
|
|
||||||
/// multiplies the parameter-matrix from the right (out=this*right)
|
/// multiplies the parameter-matrix from the right (out=this*right)
|
||||||
TransformationMatrix multiplyRight(const TransformationMatrix &right);
|
TransformationMatrix multiplyRight(const TransformationMatrix &right) const;
|
||||||
|
|
||||||
/// generates an eye matrix.
|
/// generates an eye matrix.
|
||||||
static TransformationMatrix mat_eye();
|
static TransformationMatrix mat_eye();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user