24using ::com::sun::star::uno::Sequence;
30 : m_Matrix(rHomMatrix)
31 , m_bSwapXAndY(bSwapXAndY)
41 double fX = rSourceValues[0];
42 double fY = rSourceValues[1];
43 double fZ = rSourceValues[2];
46 css::drawing::Position3D aNewVec;
53 aNewVec.PositionX = fZwi;
59 aNewVec.PositionY = fZwi;
65 aNewVec.PositionZ = fZwi;
71 if(fZwi != 1.0 && fZwi != 0.0)
73 aNewVec.PositionX /= fZwi;
74 aNewVec.PositionY /= fZwi;
75 aNewVec.PositionZ /= fZwi;
81 const css::drawing::Position3D& rSourceValues )
const
83 double fX = rSourceValues.PositionX;
84 double fY = rSourceValues.PositionY;
85 double fZ = rSourceValues.PositionZ;
88 css::drawing::Position3D aNewVec;
95 aNewVec.PositionX = fZwi;
101 aNewVec.PositionY = fZwi;
107 aNewVec.PositionZ = fZwi;
113 if(fZwi != 1.0 && fZwi != 0.0)
115 aNewVec.PositionX /= fZwi;
116 aNewVec.PositionY /= fZwi;
117 aNewVec.PositionZ /= fZwi;