summaryrefslogtreecommitdiff
path: root/include/basegfx/tuple/b2i64tuple.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-03 16:53:45 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-03 16:53:45 +0200
commita6f5770b4aaaa6506a22eae0d641ad48f9b6d239 (patch)
treea6c682cae9034bc67f23c410dd3d0227d36d680b /include/basegfx/tuple/b2i64tuple.hxx
parent5bc343cc723f993ed112cf5c700e3f397527d671 (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/b2i64tuple.hxx')
-rw-r--r--include/basegfx/tuple/b2i64tuple.hxx14
1 files changed, 14 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);