summaryrefslogtreecommitdiffstats
path: root/src/livarot/Shape.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-07-14 19:42:57 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-07-14 19:42:57 +0000
commitefbf9755460d4c4b7a3d9d43dd753afcc8a28865 (patch)
tree41a259211da187e29f9983821b4cdfea221b6ad6 /src/livarot/Shape.cpp
parentFix crashes in print preview (diff)
parentMake cms_key in SPDesktopWidget a regular ustring rather than a pointer (diff)
downloadinkscape-efbf9755460d4c4b7a3d9d43dd753afcc8a28865.tar.gz
inkscape-efbf9755460d4c4b7a3d9d43dd753afcc8a28865.zip
Merge SPCanvasArena caching layer work
(bzr r10451)
Diffstat (limited to 'src/livarot/Shape.cpp')
-rw-r--r--src/livarot/Shape.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp
index 9107844be..d24e4b99d 100644
--- a/src/livarot/Shape.cpp
+++ b/src/livarot/Shape.cpp
@@ -2225,7 +2225,7 @@ double distance(Shape const *s, Geom::Point const &p)
if ( el > 0.001 ) {
double const npr = Geom::dot(d, e);
if ( npr > 0 && npr < el ) {
- double const nl = fabs( NR::cross(d, e) );
+ double const nl = fabs( Geom::cross(d, e) );
double ndot = nl * nl / el;
if ( ndot < bdot ) {
bdot = ndot;
@@ -2271,7 +2271,7 @@ bool distanceLessThanOrEqual(Shape const *s, Geom::Point const &p, double const
double const max_l1 = max_l2 * M_SQRT2;
for (int i = 0; i < s->numberOfPoints(); i++) {
Geom::Point const offset( p - s->getPoint(i).x );
- double const l1 = NR::L1(offset);
+ double const l1 = Geom::L1(offset);
if ( (l1 <= max_l2) || ((l1 <= max_l1) && (Geom::L2(offset) <= max_l2)) ) {
return true;
}
@@ -2288,7 +2288,7 @@ bool distanceLessThanOrEqual(Shape const *s, Geom::Point const &p, double const
Geom::Point const e_unit(e / el);
double const npr = Geom::dot(d, e_unit);
if ( npr > 0 && npr < el ) {
- double const nl = fabs(NR::cross(d, e_unit));
+ double const nl = fabs(Geom::cross(d, e_unit));
if ( nl <= max_l2 ) {
return true;
}