callcatcher: remove unused basegfx::B3DHomMatrix::Foo

This commit is contained in:
Thomas Arnhold
2011-07-13 12:14:09 +02:00
parent 114508f9d8
commit 0083b35e75
2 changed files with 0 additions and 67 deletions

View File

@@ -52,9 +52,6 @@ namespace basegfx
B3DHomMatrix(const B3DHomMatrix& rMat); B3DHomMatrix(const B3DHomMatrix& rMat);
~B3DHomMatrix(); ~B3DHomMatrix();
/// unshare this matrix with all internally shared instances
void makeUnique();
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const; double get(sal_uInt16 nRow, sal_uInt16 nColumn) const;
void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue); void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue);
@@ -66,20 +63,12 @@ namespace basegfx
/// Reset to the identity matrix /// Reset to the identity matrix
void identity(); void identity();
bool isInvertible() const;
/// Invert the matrix (if possible) /// Invert the matrix (if possible)
bool invert(); bool invert();
bool isNormalized() const;
/// Normalize (i.e. force w=1) the matrix
void normalize();
/// Calc the matrix determinant /// Calc the matrix determinant
double determinant() const; double determinant() const;
/// Calc the matrix trace
double trace() const;
/// Transpose the matrix /// Transpose the matrix
void transpose(); void transpose();
@@ -94,8 +83,6 @@ namespace basegfx
// Shearing-Matrices // Shearing-Matrices
void shearXY(double fSx, double fSy); void shearXY(double fSx, double fSy);
void shearYZ(double fSy, double fSz);
void shearXZ(double fSx, double fSz);
// Projection matrices, used for converting between eye and // Projection matrices, used for converting between eye and
// clip coordinates // clip coordinates

View File

@@ -63,11 +63,6 @@ namespace basegfx
return *this; return *this;
} }
void B3DHomMatrix::makeUnique()
{
mpImpl.make_unique();
}
double B3DHomMatrix::get(sal_uInt16 nRow, sal_uInt16 nColumn) const double B3DHomMatrix::get(sal_uInt16 nRow, sal_uInt16 nColumn) const
{ {
return mpImpl->get(nRow, nColumn); return mpImpl->get(nRow, nColumn);
@@ -96,11 +91,6 @@ namespace basegfx
mpImpl = IdentityMatrix::get(); mpImpl = IdentityMatrix::get();
} }
bool B3DHomMatrix::isInvertible() const
{
return mpImpl->isInvertible();
}
bool B3DHomMatrix::invert() bool B3DHomMatrix::invert()
{ {
Impl3DHomMatrix aWork(*mpImpl); Impl3DHomMatrix aWork(*mpImpl);
@@ -119,27 +109,11 @@ namespace basegfx
return false; return false;
} }
bool B3DHomMatrix::isNormalized() const
{
return mpImpl->isNormalized();
}
void B3DHomMatrix::normalize()
{
if(!const_cast<const B3DHomMatrix*>(this)->mpImpl->isNormalized())
mpImpl->doNormalize();
}
double B3DHomMatrix::determinant() const double B3DHomMatrix::determinant() const
{ {
return mpImpl->doDeterminant(); return mpImpl->doDeterminant();
} }
double B3DHomMatrix::trace() const
{
return mpImpl->doTrace();
}
void B3DHomMatrix::transpose() void B3DHomMatrix::transpose()
{ {
mpImpl->doTranspose(); mpImpl->doTranspose();
@@ -290,34 +264,6 @@ namespace basegfx
} }
} }
void B3DHomMatrix::shearYZ(double fSy, double fSz)
{
// #i76239# do not test againt 1.0, but against 0.0. We are talking about a value not on the diagonal (!)
if(!fTools::equalZero(fSy) || !fTools::equalZero(fSz))
{
Impl3DHomMatrix aShearYZMat;
aShearYZMat.set(1, 0, fSy);
aShearYZMat.set(2, 0, fSz);
mpImpl->doMulMatrix(aShearYZMat);
}
}
void B3DHomMatrix::shearXZ(double fSx, double fSz)
{
// #i76239# do not test againt 1.0, but against 0.0. We are talking about a value not on the diagonal (!)
if(!fTools::equalZero(fSx) || !fTools::equalZero(fSz))
{
Impl3DHomMatrix aShearXZMat;
aShearXZMat.set(0, 1, fSx);
aShearXZMat.set(2, 1, fSz);
mpImpl->doMulMatrix(aShearXZMat);
}
}
void B3DHomMatrix::frustum(double fLeft, double fRight, double fBottom, double fTop, double fNear, double fFar) void B3DHomMatrix::frustum(double fLeft, double fRight, double fBottom, double fTop, double fNear, double fFar)
{ {
const double fZero(0.0); const double fZero(0.0);