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
8fae55c7
Kaydet (Commit)
8fae55c7
authored
Haz 23, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#79615 create clipping polygon correctly
Change-Id: I758b6bc8da33a20a0807da171120a8f84214dcfd
üst
33141f99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
b2dpolygoncutandtouch.cxx
basegfx/source/polygon/b2dpolygoncutandtouch.cxx
+2
-2
No files found.
basegfx/source/polygon/b2dpolygoncutandtouch.cxx
Dosyayı görüntüle @
8fae55c7
...
...
@@ -247,7 +247,7 @@ namespace basegfx
const
double
fOne
(
1.0
);
fCut
=
(
aVecB
.
getY
()
*
(
rCurrB
.
getX
()
-
rCurrA
.
getX
())
+
aVecB
.
getX
()
*
(
rCurrA
.
getY
()
-
rCurrB
.
getY
()))
/
fCut
;
if
(
fTools
::
more
(
fCut
,
fZero
)
&&
fTools
::
less
(
fCut
,
fOne
))
if
(
fTools
::
more
OrEqual
(
fCut
,
fZero
)
&&
fTools
::
lessOrEqual
(
fCut
,
fOne
))
{
// it's a candidate, but also need to test parameter value of cut on line 2
double
fCut2
;
...
...
@@ -262,7 +262,7 @@ namespace basegfx
fCut2
=
(
rCurrA
.
getY
()
+
(
fCut
*
aVecA
.
getY
())
-
rCurrB
.
getY
())
/
aVecB
.
getY
();
}
if
(
fTools
::
more
(
fCut2
,
fZero
)
&&
fTools
::
less
(
fCut2
,
fOne
))
if
(
fTools
::
more
OrEqual
(
fCut2
,
fZero
)
&&
fTools
::
lessOrEqual
(
fCut2
,
fOne
))
{
// cut is in range, add point. Two edges can have only one cut, but
// add a cut point to each list. The lists may be the same for
...
...
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