diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-03 16:53:45 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-03 16:53:45 +0200 |
commit | a6f5770b4aaaa6506a22eae0d641ad48f9b6d239 (patch) | |
tree | a6c682cae9034bc67f23c410dd3d0227d36d680b /include/basegfx/tuple | |
parent | 5bc343cc723f993ed112cf5c700e3f397527d671 (diff) |
Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"
The basegfx changes appear to break Windows builds.
This reverts commit 3b32c5898ff4e744d3f18b00421b433500426d74.
Diffstat (limited to 'include/basegfx/tuple')
-rw-r--r-- | include/basegfx/tuple/b2i64tuple.hxx | 14 | ||||
-rw-r--r-- | include/basegfx/tuple/b3ituple.hxx | 18 |
2 files changed, 32 insertions, 0 deletions
diff --git a/include/basegfx/tuple/b2i64tuple.hxx b/include/basegfx/tuple/b2i64tuple.hxx index e4b40acff289..2d0bfcf6d485 100644 --- a/include/basegfx/tuple/b2i64tuple.hxx +++ b/include/basegfx/tuple/b2i64tuple.hxx @@ -91,6 +91,18 @@ namespace basegfx return mnY; } + /// Set X-Coordinate of 2D Tuple + void setX(sal_Int64 fX) + { + mnX = fX; + } + + /// Set Y-Coordinate of 2D Tuple + void setY(sal_Int64 fY) + { + mnY = fY; + } + /// Array-access to 2D Tuple const sal_Int64& operator[] (int nPos) const { @@ -159,6 +171,8 @@ namespace basegfx return B2I64Tuple(-mnX, -mnY); } + bool equalZero() const { return mnX == 0 && mnY == 0; } + bool operator==( const B2I64Tuple& rTup ) const { return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY); diff --git a/include/basegfx/tuple/b3ituple.hxx b/include/basegfx/tuple/b3ituple.hxx index 7802101ece74..3bd9199f32e4 100644 --- a/include/basegfx/tuple/b3ituple.hxx +++ b/include/basegfx/tuple/b3ituple.hxx @@ -104,6 +104,24 @@ namespace basegfx return mnZ; } + /// set X-Coordinate of 3D Tuple + void setX(sal_Int32 nX) + { + mnX = nX; + } + + /// set Y-Coordinate of 3D Tuple + void setY(sal_Int32 nY) + { + mnY = nY; + } + + /// set Z-Coordinate of 3D Tuple + void setZ(sal_Int32 nZ) + { + mnZ = nZ; + } + /// Array-access to 3D Tuple const sal_Int32& operator[] (int nPos) const { |