Add const qualifier to multiply and divide operators for agg_trans_affine/perspective
Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
committed by
Augustin Cavalier
parent
58916d4a36
commit
cb743deb19
@@ -195,14 +195,14 @@ namespace agg
|
|||||||
|
|
||||||
// Multiply current matrix to another one and return
|
// Multiply current matrix to another one and return
|
||||||
// the result in a separete matrix.
|
// the result in a separete matrix.
|
||||||
trans_affine operator * (const trans_affine& m)
|
trans_affine operator * (const trans_affine& m) const
|
||||||
{
|
{
|
||||||
return trans_affine(*this).multiply(m);
|
return trans_affine(*this).multiply(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Multiply current matrix to inverse of another one
|
// Multiply current matrix to inverse of another one
|
||||||
// and return the result in a separete matrix.
|
// and return the result in a separete matrix.
|
||||||
trans_affine operator / (const trans_affine& m)
|
trans_affine operator / (const trans_affine& m) const
|
||||||
{
|
{
|
||||||
return trans_affine(*this).multiply_inv(m);
|
return trans_affine(*this).multiply_inv(m);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user