Kaydet (Commit) 374d53f5 authored tarafından Zsolt Bölöny's avatar Zsolt Bölöny Kaydeden (comit) Noel Grandin

Removed B{2,3}DTuple's custom treshold equal() and equalZero() methods

Change-Id: I351b624c2282cbe9d37b32161eec574ce64c11be
Reviewed-on: https://gerrit.libreoffice.org/15807Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d119f4ba
...@@ -139,12 +139,6 @@ namespace basegfx ...@@ -139,12 +139,6 @@ namespace basegfx
(fTools::equalZero(mfX) && fTools::equalZero(mfY))); (fTools::equalZero(mfX) && fTools::equalZero(mfY)));
} }
bool equalZero(const double& rfSmallValue) const
{
return (this == &getEmptyTuple() ||
(fTools::equalZero(mfX, rfSmallValue) && fTools::equalZero(mfY, rfSmallValue)));
}
bool equal(const B2DTuple& rTup) const bool equal(const B2DTuple& rTup) const
{ {
return ( return (
...@@ -153,14 +147,6 @@ namespace basegfx ...@@ -153,14 +147,6 @@ namespace basegfx
fTools::equal(mfY, rTup.mfY))); fTools::equal(mfY, rTup.mfY)));
} }
bool equal(const B2DTuple& rTup, const double& rfSmallValue) const
{
return (
this == &rTup ||
(fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
fTools::equal(mfY, rTup.mfY, rfSmallValue)));
}
// operators // operators
......
...@@ -154,14 +154,6 @@ namespace basegfx ...@@ -154,14 +154,6 @@ namespace basegfx
&& ::basegfx::fTools::equalZero(mfZ))); && ::basegfx::fTools::equalZero(mfZ)));
} }
bool equalZero(const double& rfSmallValue) const
{
return (this == &getEmptyTuple() ||
(::basegfx::fTools::equalZero(mfX, rfSmallValue)
&& ::basegfx::fTools::equalZero(mfY, rfSmallValue)
&& ::basegfx::fTools::equalZero(mfZ, rfSmallValue)));
}
bool equal(const B3DTuple& rTup) const bool equal(const B3DTuple& rTup) const
{ {
return ( return (
...@@ -171,15 +163,6 @@ namespace basegfx ...@@ -171,15 +163,6 @@ namespace basegfx
::basegfx::fTools::equal(mfZ, rTup.mfZ))); ::basegfx::fTools::equal(mfZ, rTup.mfZ)));
} }
bool equal(const B3DTuple& rTup, const double& rfSmallValue) const
{
return (
this == &rTup ||
(::basegfx::fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
::basegfx::fTools::equal(mfY, rTup.mfY, rfSmallValue) &&
::basegfx::fTools::equal(mfZ, rTup.mfZ, rfSmallValue)));
}
// operators // operators
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment