Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f45ff6b4
Kaydet (Commit)
f45ff6b4
authored
Şub 21, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unused code basegfx::snapToNearestMultiple(double, double)
Change-Id: If708227af22e834a0aecbeca12ce99b1240443c7
üst
ffdd5d30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
36 deletions
+0
-36
ftools.cxx
basegfx/source/numeric/ftools.cxx
+0
-23
ftools.hxx
include/basegfx/numeric/ftools.hxx
+0
-12
unusedcode.easy
unusedcode.easy
+0
-1
No files found.
basegfx/source/numeric/ftools.cxx
Dosyayı görüntüle @
f45ff6b4
...
@@ -25,29 +25,6 @@ namespace basegfx
...
@@ -25,29 +25,6 @@ namespace basegfx
// init static member of class fTools
// init static member of class fTools
double
::
basegfx
::
fTools
::
mfSmallValue
=
0.000000001
;
double
::
basegfx
::
fTools
::
mfSmallValue
=
0.000000001
;
double
snapToNearestMultiple
(
double
v
,
const
double
fStep
)
{
if
(
fTools
::
equalZero
(
fStep
))
{
// with a zero step, all snaps to 0.0
return
0.0
;
}
else
{
const
double
fHalfStep
(
fStep
*
0.5
);
const
double
fChange
(
fHalfStep
-
fmod
(
v
+
fHalfStep
,
fStep
));
if
(
basegfx
::
fTools
::
equal
(
fabs
(
v
),
fabs
(
fChange
)))
{
return
0.0
;
}
else
{
return
v
+
fChange
;
}
}
}
double
snapToZeroRange
(
double
v
,
double
fWidth
)
double
snapToZeroRange
(
double
v
,
double
fWidth
)
{
{
if
(
fTools
::
equalZero
(
fWidth
))
if
(
fTools
::
equalZero
(
fWidth
))
...
...
include/basegfx/numeric/ftools.hxx
Dosyayı görüntüle @
f45ff6b4
...
@@ -136,18 +136,6 @@ namespace basegfx
...
@@ -136,18 +136,6 @@ namespace basegfx
return
v
/
M_PI_2
*
90.0
;
return
v
/
M_PI_2
*
90.0
;
}
}
/** Snap v to nearest multiple of fStep, from negative and
positive side.
Examples:
snapToNearestMultiple(-0.1, 0.5) = 0.0
snapToNearestMultiple(0.1, 0.5) = 0.0
snapToNearestMultiple(0.25, 0.5) = 0.0
snapToNearestMultiple(0.26, 0.5) = 0.5
*/
double
snapToNearestMultiple
(
double
v
,
const
double
fStep
);
/** Snap v to the range [0.0 .. fWidth] using modulo
/** Snap v to the range [0.0 .. fWidth] using modulo
*/
*/
double
snapToZeroRange
(
double
v
,
double
fWidth
);
double
snapToZeroRange
(
double
v
,
double
fWidth
);
...
...
unusedcode.easy
Dosyayı görüntüle @
f45ff6b4
...
@@ -277,7 +277,6 @@ apitest::XText::testInsertRemoveTextContent()
...
@@ -277,7 +277,6 @@ apitest::XText::testInsertRemoveTextContent()
apitest::XTextContent::testAttach()
apitest::XTextContent::testAttach()
apitest::XTextContent::testGetAnchor()
apitest::XTextContent::testGetAnchor()
apitest::XTextField::testGetPresentation()
apitest::XTextField::testGetPresentation()
basegfx::snapToNearestMultiple(double, double)
basegfx::tools::containsOnlyHorizontalAndVerticalEdges(basegfx::B2DPolyPolygon const&)
basegfx::tools::containsOnlyHorizontalAndVerticalEdges(basegfx::B2DPolyPolygon const&)
basegfx::tools::equal(basegfx::B2DPolygon const&, basegfx::B2DPolygon const&, double const&)
basegfx::tools::equal(basegfx::B2DPolygon const&, basegfx::B2DPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment