mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
More work on unit tests for boolean operation.
This commit is contained in:
parent
957d303a0d
commit
b33777274d
1 changed files with 122 additions and 99 deletions
|
@ -17,18 +17,20 @@ function createPath(str) {
|
|||
return new ctor(str)
|
||||
}
|
||||
|
||||
function compareBoolean(result, expected, message) {
|
||||
function compareBoolean(actual, expected, message) {
|
||||
expected = typeof expected === 'string'
|
||||
? createPath(expected)
|
||||
: expected;
|
||||
result.fillColor = expected.fillColor = 'blue';
|
||||
equals(result, expected,
|
||||
message || QUnit.config.current.testName.match(/^([^#]*)/)[1],
|
||||
{ rasterize: true });
|
||||
? createPath(expected)
|
||||
: expected;
|
||||
if (typeof actual === 'function') {
|
||||
if (!message)
|
||||
message = getFunctionMessage(actual);
|
||||
actual = actual();
|
||||
}
|
||||
actual.fillColor = expected.fillColor = 'blue';
|
||||
equals(actual, expected, message, { rasterize: true });
|
||||
}
|
||||
|
||||
test('res2.exclude(shape3); #541', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/541
|
||||
test('#541', function() {
|
||||
var shape0 = new Path.Rectangle({
|
||||
insert: false,
|
||||
point: [304, 226],
|
||||
|
@ -58,11 +60,11 @@ test('res2.exclude(shape3); #541', function() {
|
|||
size: [302, 302]
|
||||
});
|
||||
// exclude res2 & shape3
|
||||
compareBoolean(res2.exclude(shape3), 'M304,554l0,-175l14,0l0,71l302,0l0,-198.262l12,-2.27975l0,304.54175z M318,379l165,0l0,-101.23486l137,-26.02714l0,-25.738l-137,0l0,-78l-128.58788,0l-36.41212,23.51468l0,54.48532l165,0l0,51.76514l-6.5,1.23486l-158.5,-24.10646z M174,379l0,-251l211.38182,0l-30.9697,20l-36.41212,0l0,23.51468l-104.5,67.48532l90.5,13.76426l0,-26.76426l14,0l0,28.89354l-14,-2.12928l0,126.23574z M385.38182,128l83.61818,-54l114.59561,74l-100.59561,0l0,-20z M583.59561,148l36.40439,23.5081l0,-23.5081z M620,171.5081l96,61.9919l-84,15.95825l0,-23.45825l-12,0z');
|
||||
compareBoolean(function() { return res2.exclude(shape3); },
|
||||
'M304,554l0,-175l14,0l0,71l302,0l0,-198.262l12,-2.27975l0,304.54175z M318,379l165,0l0,-101.23486l137,-26.02714l0,-25.738l-137,0l0,-78l-128.58788,0l-36.41212,23.51468l0,54.48532l165,0l0,51.76514l-6.5,1.23486l-158.5,-24.10646z M174,379l0,-251l211.38182,0l-30.9697,20l-36.41212,0l0,23.51468l-104.5,67.48532l90.5,13.76426l0,-26.76426l14,0l0,28.89354l-14,-2.12928l0,126.23574z M385.38182,128l83.61818,-54l114.59561,74l-100.59561,0l0,-20z M583.59561,148l36.40439,23.5081l0,-23.5081z M620,171.5081l96,61.9919l-84,15.95825l0,-23.45825l-12,0z');
|
||||
});
|
||||
|
||||
test('path1.unite(path2); #609', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/609
|
||||
test('#609', function() {
|
||||
// path1 and path2 are half circles, applying unite should result in a circle
|
||||
var path1 = new Path();
|
||||
path1.moveTo(new Point(100, 100));
|
||||
|
@ -74,12 +76,11 @@ test('path1.unite(path2); #609', function() {
|
|||
path2.arcTo(new Point(100, 100));
|
||||
path2.closePath();
|
||||
|
||||
compareBoolean(path1.unite(path2),
|
||||
compareBoolean(function() { return path1.unite(path2); },
|
||||
'M150,150c0,27.61424 -22.38576,50 -50,50c-27.61424,0 -50,-22.38576 -50,-50c0,-27.61424 22.38576,-50 50,-50c27.61424,0 50,22.38576 50,50z');
|
||||
});
|
||||
|
||||
test('path1.unite(path2); #610', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/610
|
||||
test('#610', function() {
|
||||
var square = new Path.Rectangle({
|
||||
position: [140, 0],
|
||||
size: 300
|
||||
|
@ -98,11 +99,11 @@ test('path1.unite(path2); #610', function() {
|
|||
|
||||
var ring = outer.subtract(inner);
|
||||
|
||||
compareBoolean(ring.subtract(square),
|
||||
compareBoolean(function() { return ring.subtract(square); },
|
||||
'M-132,0c0,-69.53737 53.7698,-126.51614 122,-131.62689l0,32.12064c-50.53323,5.01724 -90,47.65277 -90,99.50625c0,51.85348 39.46677,94.489 90,99.50625l0,32.12064c-68.2302,-5.11075 -122,-62.08951 -122,-131.62689z');
|
||||
});
|
||||
|
||||
test('circle.subtract(arc); #719', function() {
|
||||
test('#719', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/719
|
||||
var radius = 50;
|
||||
var circle = new Path.Circle([0, 0], radius);
|
||||
|
@ -117,16 +118,21 @@ test('circle.subtract(arc); #719', function() {
|
|||
compareBoolean(result, expected);
|
||||
});
|
||||
|
||||
test('path1.unite(path2); #784', function() {
|
||||
test('#784', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/784
|
||||
var path1 = createPath('M495.9,1693.5c-42.2-203.5-64.5-304.9-78-299.9 c-1.7,0.6-0.3,6.7,5.3,22.5l209.4-74.8l75.8,303.9L495.9,1693.5z');
|
||||
var path2 = createPath('M632.6,1341.2l-209.4,74.9c95.4,267,135.6,201-60.1-144.5l202.9-85.7 L632.6,1341.2z');
|
||||
compareBoolean(path1.unite(path2),
|
||||
compareBoolean(function() { return path1.unite(path2); },
|
||||
'M495.9,1693.5c-17.51923,-84.48253 -31.60874,-151.36838 -43.06274,-200.34989c-9.02339,-21.58227 -18.9863,-47.24083 -29.63726,-77.05011c-5.6,-15.8 -7,-21.9 -5.3,-22.5c3.68921,-1.36638 8.03561,5.21313 13.26571,19.65076l6.17555,-2.20892c0.00094,0.00191 0.00189,0.00383 0.00283,0.00574l195.25591,-69.74757l75.8,303.9z M632.6,1341.2l-195.25874,69.84183c-19.60056,-39.73292 -44.12819,-86.27851 -74.24126,-139.44183l202.9,-85.7z');
|
||||
|
||||
var path1 = new Path('M330.1,388.5l-65,65c0,0-49.1-14.5-36.6-36.6 c12.5-22.1,92.4,25.1,92.4,25.1s-33.3-73.3-23.2-85.9C307.7,343.3,330.1,388.5,330.1,388.5z');
|
||||
var path2 = new Path('M395.1,453.4c0,15.2-33.8,65-65,65s-65-65-65-65l65-65 C330.1,388.5,395.1,438.2,395.1,453.4z');
|
||||
compareBoolean(function() { return path1.unite(path2); },
|
||||
'M265.13434,453.46566l-0.03434,0.03434c0,0 -49.1,-14.5 -36.6,-36.6c7.48073,-13.22593 39.10093,-1.6319 63.28843,9.81157l16.18604,-16.18604c-8.05354,-21.53223 -15.90287,-47.40397 -10.27447,-54.42553c9.77623,-12.51358 31.40373,30.40618 32.36674,32.33326l0.03326,-0.03326c0,0.1 65,49.8 65,65c0,15.2 -33.8,65 -65,65c-30.62393,0 -63.75273,-62.62185 -64.96566,-64.93434z');
|
||||
});
|
||||
|
||||
test('p.unite(); #865', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/865
|
||||
test('#854', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/854
|
||||
var p = new Path({
|
||||
segments:[
|
||||
[110, 60],
|
||||
|
@ -139,20 +145,58 @@ test('p.unite(); #865', function() {
|
|||
});
|
||||
p.translate(100, 100);
|
||||
p.scale(4);
|
||||
compareBoolean(function() {
|
||||
p.windingRule = 'evenodd';
|
||||
return p.unite();
|
||||
},
|
||||
'M228.55086,143.23924l-38.88978,-21.02822l27.82967,96.42806c-34.09062,-20.75559 -47.33495,-62.77314 -32.21096,-98.79709l-0.35495,-0.19193c0.64433,-1.18671 1.31713,-2.35551 2.01826,-3.50647c0,0 0,0 0,0c-0.58827,1.22495 -1.1426,2.45812 -1.66331,3.6984l4.38129,2.36902l-2.05829,-7.13185c-0.22261,0.3531 -0.44251,0.70791 -0.6597,1.06443c0.58173,-1.21134 1.19664,-2.41465 1.84504,-3.60884z');
|
||||
|
||||
p.windingRule = 'evenodd';
|
||||
compareBoolean(p.unite(),
|
||||
'M228.55086,143.23924l-38.88978,-21.02822l27.82967,96.42806c-34.09062,-20.75559 -47.33495,-62.77314 -32.21096,-98.79709l-0.35495,-0.19193c0.64433,-1.18671 1.31713,-2.35551 2.01826,-3.50647c0,0 0,0 0,0c-0.58827,1.22495 -1.1426,2.45812 -1.66331,3.6984l4.38129,2.36902l-2.05829,-7.13185c-0.22261,0.3531 -0.44251,0.70791 -0.6597,1.06443c0.58173,-1.21134 1.19664,-2.41465 1.84504,-3.60884z',
|
||||
'p.unite(); // evenodd fill-rule');
|
||||
compareBoolean(function() {
|
||||
p.windingRule = 'nonzero';
|
||||
return p.unite();
|
||||
},
|
||||
'M228.55086,143.23924l-38.88978,-21.02822l27.82967,96.42806c-34.09062,-20.75559 -47.33495,-62.77314 -32.21096,-98.79709l-0.35495,-0.19193c0.64433,-1.18671 1.31713,-2.35551 2.01826,-3.50647c0.58173,-1.21134 1.19664,-2.41465 1.84504,-3.60884z');
|
||||
});
|
||||
|
||||
p.windingRule = 'nonzero';
|
||||
compareBoolean(p.unite(),
|
||||
'M228.55086,143.23924l-38.88978,-21.02822l27.82967,96.42806c-34.09062,-20.75559 -47.33495,-62.77314 -32.21096,-98.79709l-0.35495,-0.19193c0.64433,-1.18671 1.31713,-2.35551 2.01826,-3.50647c0.58173,-1.21134 1.19664,-2.41465 1.84504,-3.60884z',
|
||||
'p.unite(); // nonzero fill-rule');
|
||||
test('#859', function() {
|
||||
var p1 = new Path({
|
||||
segments: [
|
||||
[230, 360, 0, 0, 0, 0],
|
||||
[326.04999999999995, 361.95, 0, 0, 7.100000000000023, 5.300000000000011],
|
||||
[347.74999999999994, 377.3, -7.300000000000011, -5, 0, 0],
|
||||
[260, 400],
|
||||
],
|
||||
closed: true
|
||||
});
|
||||
var p2 = new Path({
|
||||
segments: [
|
||||
[329.8373529833907, 360.99927475751736, 0, 0, -0.5084518552435497, 1.7136677994218417],
|
||||
[327.9816245617005, 366.0401044369074, 0.7293957729680756, -1.645975116174725, 0, 0],
|
||||
[300, 380]
|
||||
],
|
||||
closed: true
|
||||
});
|
||||
compareBoolean(function() { return p1.subtract(p2); },
|
||||
'M230,360l96.05,1.95c0.3523,0.26298 0.70509,0.52535 1.05835,0.78713l-27.10835,17.26287l27.98162,-13.9599c0.29878,-0.67424 0.57885,-1.35439 0.84036,-2.04026c6.22144,4.55915 12.57473,8.94859 18.92802,13.30016l-87.75,22.7z');
|
||||
});
|
||||
|
||||
|
||||
test('p1.subtract(p2); #865', function() {
|
||||
test('#839', function() {
|
||||
var p1 = new Path({segments:[
|
||||
[522, 352, 0, 0, 0, 0],
|
||||
[500, 400, 0, 0, 0, 0],
|
||||
[480, 400, 0, 0, 0, 0],
|
||||
[448, 448, 0, 0, 0, 0],
|
||||
[100, 448, 0, 0, 0, 0],
|
||||
[100, 352, 0, 0, 0, 0]],
|
||||
closed:true});
|
||||
var p2 = new Path.Rectangle(250, 300, 100, 200);
|
||||
compareBoolean(function() { return p1.subtract(p2); },
|
||||
'M522,352l-22,48l-20,0l-32,48l-98,0l0,-96z M250,448l-150,0l0,-96l150,0z');
|
||||
})
|
||||
|
||||
|
||||
test('#865', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/865
|
||||
function executeTest(offset) {
|
||||
var p1 = new Path({
|
||||
|
@ -192,7 +236,7 @@ test('p1.subtract(p2); #865', function() {
|
|||
executeTest( 0.000000001);
|
||||
});
|
||||
|
||||
test('cp.subtract(p); #875', function() {
|
||||
test('#875', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/875
|
||||
var cp = new Path({segments:[
|
||||
[158.7, 389.3, 0, 0, -4.95, 4.95],
|
||||
|
@ -204,11 +248,11 @@ test('cp.subtract(p); #875', function() {
|
|||
|
||||
var p = new Path.Circle(260, 320, 100);
|
||||
|
||||
compareBoolean(cp.subtract(p),
|
||||
compareBoolean(function() { return cp.subtract(p); },
|
||||
'M158.7,407.2c4.95,4.95 12.95,4.95 17.9,0c4.95,-4.95 4.95,-12.95 0,-17.9c-4.95,-4.95 -12.95,-4.95 -17.9,0c-4.95,4.95 -4.95,12.95 0,17.9z');
|
||||
});
|
||||
|
||||
test('cp.subtract(p); #877', function() {
|
||||
test('#877', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/877
|
||||
var cp = new CompoundPath();
|
||||
cp.addChild(new Path.Circle(100, 60, 50));
|
||||
|
@ -226,11 +270,11 @@ test('cp.subtract(p); #877', function() {
|
|||
[170, 200]
|
||||
], closed:true});
|
||||
|
||||
compareBoolean(cp.subtract(p),
|
||||
compareBoolean(function() { return cp.subtract(p); },
|
||||
'M50,60c0,-27.61424 22.38576,-50 50,-50c27.61424,0 50,22.38576 50,50c0,27.61424 -22.38576,50 -50,50c-27.61424,0 -50,-22.38576 -50,-50z M100,90c16.56854,0 30,-13.43146 30,-30c0,-16.56854 -13.43146,-30 -30,-30c-16.56854,0 -30,13.43146 -30,30c0,16.56854 13.43146,30 30,30z M120,140l15,0l0,50l-15,0z');
|
||||
});
|
||||
|
||||
test('p1.subtract(p2); #878', function() {
|
||||
test('#878', function() {
|
||||
// https://github.com/paperjs/paper.js/issues/878
|
||||
var p1 = new Path({
|
||||
segments:[
|
||||
|
@ -249,7 +293,7 @@ test('p1.subtract(p2); #878', function() {
|
|||
closed:true
|
||||
});
|
||||
|
||||
compareBoolean(p1.subtract(p2),
|
||||
compareBoolean(function() { return p1.subtract(p2); },
|
||||
'M431.9,480l-35.62956,-12.89652c3.78718,8.07094 5.3669,12.89652 3.72956,12.89652z M208.0427,398.97235l-80.0427,-28.97235l-48,110l60,0c-4.6672,0 29.87455,-39.20895 68.0427,-81.02765z');
|
||||
});
|
||||
|
||||
|
@ -265,85 +309,64 @@ test('frame.intersect(rect);', function() {
|
|||
test('Selected edge-cases from @hari\'s boolean-test suite', function() {
|
||||
var g = createPath('M316.6,266.4Q332.6,266.4,343.8,272.8Q355,279.2,362,289.8Q369,300.4,372.2,313.6Q375.4,326.8,375.4,340.4Q375.4,354.8,372,369.2Q368.6,383.6,361.4,395Q354.2,406.4,342.4,413.4Q330.6,420.4,313.8,420.4Q297,420.4,285.8,413.4Q274.6,406.4,267.8,395Q261,383.6,258.2,369.6Q255.4,355.6,255.4,341.6Q255.4,326.8,258.8,313.2Q262.2,299.6,269.6,289.2Q277,278.8,288.6,272.6Q300.2,266.4,316.6,266.4Z M315,236.4Q288.2,236.4,269.8,246.6Q251.4,256.8,240.2,272.6Q229,288.4,224.2,307.8Q219.4,327.2,219.4,345.6Q219.4,366.8,225.2,385.8Q231,404.8,242.6,419Q254.2,433.2,271.4,441.6Q288.6,450,311.8,450Q331.8,450,349.6,441Q367.4,432,376.2,412.8L377,412.8L377,426.4Q377,443.6,373.6,458Q370.2,472.4,362.6,482.6Q355,492.8,343.4,498.6Q331.8,504.4,315,504.4Q306.6,504.4,297.4,502.6Q288.2,500.8,280.4,496.8Q272.6,492.8,267.2,486.4Q261.8,480,261.4,470.8L227.4,470.8Q228.2,487.6,236.2,499.2Q244.2,510.8,256.4,518Q268.6,525.2,283.6,528.4Q298.6,531.6,313,531.6Q362.6,531.6,385.8,506.4Q409,481.2,409,430.4L409,241.2L377,241.2L377,270.8L376.6,270.8Q367.4,253.6,351,245Q334.6,236.4,315,236.4Z');
|
||||
var u = createPath('M253,316.74Q242.25,316.74,232.77,318.39Q218.77,320.83,208.21,328.52Q197.65,336.21,191.32,349.4Q185,362.6,183.59,382.95Q182.01,405.69,189.83,423.08Q197.64,440.46,216.05,452.56L215.99,453.36L183.27,451.09L181.06,483.01L387.37,497.31L389.72,463.39L273.2,455.32Q259.23,454.35,247.72,449.74Q236.21,445.14,227.96,436.95Q219.7,428.76,215.7,417.05Q211.7,405.35,212.78,389.78Q214.14,370.23,226.09,359.83Q236.68,350.61,252.94,350.61Q255.02,350.61,257.19,350.76L396.85,360.44L399.2,326.52L263.53,317.12Q258.12,316.74,253,316.74Z');
|
||||
compareBoolean(g.unite(u),
|
||||
'M315,236.4c-17.86667,0 -32.93333,3.4 -45.2,10.2c-12.26667,6.8 -22.13333,15.46667 -29.6,26c-7.46667,10.53333 -12.8,22.26667 -16,35.2c-1.13596,4.59118 -2.0703,9.14036 -2.80301,13.64753c-4.76983,1.78645 -9.1655,4.14394 -13.18699,7.07247c-7.04,5.12667 -12.67,12.08667 -16.89,20.88c-4.21333,8.8 -6.79,19.98333 -7.73,33.55c-1.05333,15.16 1.02667,28.53667 6.24,40.13c5.20667,11.58667 13.94667,21.41333 26.22,29.48l-0.06,0.8l-32.72,-2.27l-2.21,31.92l48.97248,3.39444c1.46464,4.69217 3.52048,8.95735 6.16752,12.79556c5.33333,7.73333 12.06667,14 20.2,18.8c8.13333,4.8 17.2,8.26667 27.2,10.4c10,2.13333 19.8,3.2 29.4,3.2c33.06667,0 57.33333,-8.4 72.8,-25.2c15.46667,-16.8 23.2,-42.13333 23.2,-76l0,-189.2l-32,0l0,29.6l-0.4,0c-6.13333,-11.46667 -14.66667,-20.06667 -25.6,-25.8c-10.93333,-5.73333 -22.93333,-8.6 -36,-8.6z M220.76108,365.62343c0.96573,6.92045 2.44537,13.64598 4.43892,20.17657c3.86667,12.66667 9.66667,23.73333 17.4,33.2c7.73333,9.46667 17.33333,17 28.8,22.6c11.46667,5.6 24.93333,8.4 40.4,8.4c13.33333,0 25.93333,-3 37.8,-9c11.86667,-6 20.73333,-15.4 26.6,-28.2l0.8,0l0,13.6c0,11.46667 -1.13333,22 -3.4,31.6c-0.33765,1.43005 -0.70637,2.82903 -1.10615,4.19694l-99.29385,-6.87694c-9.31333,-0.64667 -17.80667,-2.50667 -25.48,-5.58c-7.67333,-3.06667 -14.26,-7.33 -19.76,-12.79c-5.50667,-5.46 -9.59333,-12.09333 -12.26,-19.9c-2.66667,-7.8 -3.64,-16.89 -2.92,-27.27c0.67923,-9.76393 3.33959,-17.81612 7.98108,-24.15657z M350.00561,494.72016c-2.08166,1.42552 -4.28353,2.7188 -6.60561,3.87984c-7.73333,3.86667 -17.2,5.8 -28.4,5.8c-5.6,0 -11.46667,-0.6 -17.6,-1.8c-6.13333,-1.2 -11.8,-3.13333 -17,-5.8c-4.03048,-2.06691 -7.58035,-4.61444 -10.6496,-7.64259z M316.6,266.4c10.66667,0 19.73333,2.13333 27.2,6.4c7.46667,4.26667 13.53333,9.93333 18.2,17c4.66667,7.06667 8.06667,15 10.2,23.8c0.89905,3.70858 1.60866,7.44084 2.12882,11.19678l-110.79882,-7.67678c-1.88359,-0.1323 -3.74081,-0.23006 -5.57167,-0.29327c0.26064,-1.21594 0.5412,-2.42485 0.84167,-3.62673c2.26667,-9.06667 5.86667,-17.06667 10.8,-24c4.93333,-6.93333 11.26667,-12.46667 19,-16.6c7.73333,-4.13333 17.06667,-6.2 28,-6.2z M374.00366,358.85649c-0.5217,3.44784 -1.18958,6.89567 -2.00366,10.34351c-2.26667,9.6 -5.8,18.2 -10.6,25.8c-4.8,7.6 -11.13333,13.73333 -19,18.4c-7.86667,4.66667 -17.4,7 -28.6,7c-11.2,0 -20.53333,-2.33333 -28,-7c-7.46667,-4.66667 -13.46667,-10.8 -18,-18.4c-4.53333,-7.6 -7.73333,-16.06667 -9.6,-25.4c-1.26174,-6.30869 -2.09705,-12.61738 -2.50594,-18.92608c0.49503,0.02266 0.99368,0.05136 1.49594,0.08608z',
|
||||
'g.unite(u);');
|
||||
compareBoolean(g.subtract(u),
|
||||
'M315,236.4c-17.86667,0 -32.93333,3.4 -45.2,10.2c-12.26667,6.8 -22.13333,15.46667 -29.6,26c-7.46667,10.53333 -12.8,22.26667 -16,35.2c-1.13596,4.59118 -2.0703,9.14036 -2.80301,13.64753c3.5802,-1.34089 7.3712,-2.36007 11.37301,-3.05753c6.32,-1.1 13.06333,-1.65 20.23,-1.65c1.63071,0 3.28349,0.02891 4.95833,0.08673c0.26064,-1.21594 0.5412,-2.42485 0.84167,-3.62673c2.26667,-9.06667 5.86667,-17.06667 10.8,-24c4.93333,-6.93333 11.26667,-12.46667 19,-16.6c7.73333,-4.13333 17.06667,-6.2 28,-6.2c10.66667,0 19.73333,2.13333 27.2,6.4c7.46667,4.26667 13.53333,9.93333 18.2,17c4.66667,7.06667 8.06667,15 10.2,23.8c0.89905,3.70858 1.60866,7.44084 2.12882,11.19678l24.87118,1.72322l-2.35,33.92l-22.84634,-1.58351c-0.5217,3.44784 -1.18958,6.89567 -2.00366,10.34351c-2.26667,9.6 -5.8,18.2 -10.6,25.8c-4.8,7.6 -11.13333,13.73333 -19,18.4c-7.86667,4.66667 -17.4,7 -28.6,7c-11.2,0 -20.53333,-2.33333 -28,-7c-7.46667,-4.66667 -13.46667,-10.8 -18,-18.4c-4.53333,-7.6 -7.73333,-16.06667 -9.6,-25.4c-1.26174,-6.30869 -2.09705,-12.61738 -2.50594,-18.92608c-0.9308,-0.04262 -1.84882,-0.06392 -2.75406,-0.06392c-10.84,0 -19.79,3.07333 -26.85,9.22c-1.99843,1.73922 -3.77474,3.67036 -5.32892,5.79343c0.96573,6.92045 2.44537,13.64598 4.43892,20.17657c3.86667,12.66667 9.66667,23.73333 17.4,33.2c7.73333,9.46667 17.33333,17 28.8,22.6c11.46667,5.6 24.93333,8.4 40.4,8.4c13.33333,0 25.93333,-3 37.8,-9c11.86667,-6 20.73333,-15.4 26.6,-28.2l0.8,0l0,13.6c0,11.46667 -1.13333,22 -3.4,31.6c-0.33765,1.43005 -0.70637,2.82903 -1.10615,4.19694l17.22615,1.19306l-2.35,33.92l-37.36439,-2.58984c-2.08166,1.42552 -4.28353,2.7188 -6.60561,3.87984c-7.73333,3.86667 -17.2,5.8 -28.4,5.8c-5.6,0 -11.46667,-0.6 -17.6,-1.8c-6.13333,-1.2 -11.8,-3.13333 -17,-5.8c-4.03048,-2.06691 -7.58035,-4.61444 -10.6496,-7.64259l-39.71792,-2.75297c1.46464,4.69217 3.52048,8.95735 6.16752,12.79556c5.33333,7.73333 12.06667,14 20.2,18.8c8.13333,4.8 17.2,8.26667 27.2,10.4c10,2.13333 19.8,3.2 29.4,3.2c33.06667,0 57.33333,-8.4 72.8,-25.2c15.46667,-16.8 23.2,-42.13333 23.2,-76l0,-189.2l-32,0l0,29.6l-0.4,0c-6.13333,-11.46667 -14.66667,-20.06667 -25.6,-25.8c-10.93333,-5.73333 -22.93333,-8.6 -36,-8.6z',
|
||||
'g.subtract(u);');
|
||||
compareBoolean(g.intersect(u),
|
||||
'M221.39699,321.44753c-1.33133,8.1895 -1.99699,16.24033 -1.99699,24.15247c0,6.84657 0.45369,13.52104 1.36108,20.02343c1.55418,-2.12307 3.33048,-4.05421 5.32892,-5.79343c7.06,-6.14667 16.01,-9.22 26.85,-9.22c0.90523,0 1.82325,0.02131 2.75406,0.06393c-0.19604,-3.02464 -0.29406,-6.04928 -0.29406,-9.07393c0,-8.55874 0.85278,-16.81649 2.55833,-24.77327c-1.67484,-0.05782 -3.32762,-0.08673 -4.95833,-0.08673c-7.16667,0 -13.91,0.55 -20.23,1.65c-4.0018,0.69746 -7.79281,1.71663 -11.37301,3.05753z M372.49385,462.19694c-2.28398,7.81499 -5.58193,14.61601 -9.89385,20.40306c-3.5453,4.75816 -7.74343,8.79822 -12.59439,12.12016l37.36439,2.58984l2.35,-33.92z M269.7504,489.15741c-0.8906,-0.87867 -1.74073,-1.79781 -2.5504,-2.75741c-3.6,-4.26667 -5.53333,-9.46667 -5.8,-15.6l-34,0c0.26863,5.64121 1.14612,10.84269 2.63248,15.60444z M374.32882,324.79678c0.71412,5.15644 1.07118,10.35751 1.07118,15.60322c0,6.15216 -0.46545,12.30433 -1.39634,18.45649l22.84634,1.58351l2.35,-33.92z',
|
||||
'g.intersect(u);');
|
||||
compareBoolean(function() { return g.unite(u); },
|
||||
'M315,236.4c-17.86667,0 -32.93333,3.4 -45.2,10.2c-12.26667,6.8 -22.13333,15.46667 -29.6,26c-7.46667,10.53333 -12.8,22.26667 -16,35.2c-1.13596,4.59118 -2.0703,9.14036 -2.80301,13.64753c-4.76983,1.78645 -9.1655,4.14394 -13.18699,7.07247c-7.04,5.12667 -12.67,12.08667 -16.89,20.88c-4.21333,8.8 -6.79,19.98333 -7.73,33.55c-1.05333,15.16 1.02667,28.53667 6.24,40.13c5.20667,11.58667 13.94667,21.41333 26.22,29.48l-0.06,0.8l-32.72,-2.27l-2.21,31.92l48.97248,3.39444c1.46464,4.69217 3.52048,8.95735 6.16752,12.79556c5.33333,7.73333 12.06667,14 20.2,18.8c8.13333,4.8 17.2,8.26667 27.2,10.4c10,2.13333 19.8,3.2 29.4,3.2c33.06667,0 57.33333,-8.4 72.8,-25.2c15.46667,-16.8 23.2,-42.13333 23.2,-76l0,-189.2l-32,0l0,29.6l-0.4,0c-6.13333,-11.46667 -14.66667,-20.06667 -25.6,-25.8c-10.93333,-5.73333 -22.93333,-8.6 -36,-8.6z M220.76108,365.62343c0.96573,6.92045 2.44537,13.64598 4.43892,20.17657c3.86667,12.66667 9.66667,23.73333 17.4,33.2c7.73333,9.46667 17.33333,17 28.8,22.6c11.46667,5.6 24.93333,8.4 40.4,8.4c13.33333,0 25.93333,-3 37.8,-9c11.86667,-6 20.73333,-15.4 26.6,-28.2l0.8,0l0,13.6c0,11.46667 -1.13333,22 -3.4,31.6c-0.33765,1.43005 -0.70637,2.82903 -1.10615,4.19694l-99.29385,-6.87694c-9.31333,-0.64667 -17.80667,-2.50667 -25.48,-5.58c-7.67333,-3.06667 -14.26,-7.33 -19.76,-12.79c-5.50667,-5.46 -9.59333,-12.09333 -12.26,-19.9c-2.66667,-7.8 -3.64,-16.89 -2.92,-27.27c0.67923,-9.76393 3.33959,-17.81612 7.98108,-24.15657z M350.00561,494.72016c-2.08166,1.42552 -4.28353,2.7188 -6.60561,3.87984c-7.73333,3.86667 -17.2,5.8 -28.4,5.8c-5.6,0 -11.46667,-0.6 -17.6,-1.8c-6.13333,-1.2 -11.8,-3.13333 -17,-5.8c-4.03048,-2.06691 -7.58035,-4.61444 -10.6496,-7.64259z M316.6,266.4c10.66667,0 19.73333,2.13333 27.2,6.4c7.46667,4.26667 13.53333,9.93333 18.2,17c4.66667,7.06667 8.06667,15 10.2,23.8c0.89905,3.70858 1.60866,7.44084 2.12882,11.19678l-110.79882,-7.67678c-1.88359,-0.1323 -3.74081,-0.23006 -5.57167,-0.29327c0.26064,-1.21594 0.5412,-2.42485 0.84167,-3.62673c2.26667,-9.06667 5.86667,-17.06667 10.8,-24c4.93333,-6.93333 11.26667,-12.46667 19,-16.6c7.73333,-4.13333 17.06667,-6.2 28,-6.2z M374.00366,358.85649c-0.5217,3.44784 -1.18958,6.89567 -2.00366,10.34351c-2.26667,9.6 -5.8,18.2 -10.6,25.8c-4.8,7.6 -11.13333,13.73333 -19,18.4c-7.86667,4.66667 -17.4,7 -28.6,7c-11.2,0 -20.53333,-2.33333 -28,-7c-7.46667,-4.66667 -13.46667,-10.8 -18,-18.4c-4.53333,-7.6 -7.73333,-16.06667 -9.6,-25.4c-1.26174,-6.30869 -2.09705,-12.61738 -2.50594,-18.92608c0.49503,0.02266 0.99368,0.05136 1.49594,0.08608z');
|
||||
compareBoolean(function() { return g.subtract(u); },
|
||||
'M315,236.4c-17.86667,0 -32.93333,3.4 -45.2,10.2c-12.26667,6.8 -22.13333,15.46667 -29.6,26c-7.46667,10.53333 -12.8,22.26667 -16,35.2c-1.13596,4.59118 -2.0703,9.14036 -2.80301,13.64753c3.5802,-1.34089 7.3712,-2.36007 11.37301,-3.05753c6.32,-1.1 13.06333,-1.65 20.23,-1.65c1.63071,0 3.28349,0.02891 4.95833,0.08673c0.26064,-1.21594 0.5412,-2.42485 0.84167,-3.62673c2.26667,-9.06667 5.86667,-17.06667 10.8,-24c4.93333,-6.93333 11.26667,-12.46667 19,-16.6c7.73333,-4.13333 17.06667,-6.2 28,-6.2c10.66667,0 19.73333,2.13333 27.2,6.4c7.46667,4.26667 13.53333,9.93333 18.2,17c4.66667,7.06667 8.06667,15 10.2,23.8c0.89905,3.70858 1.60866,7.44084 2.12882,11.19678l24.87118,1.72322l-2.35,33.92l-22.84634,-1.58351c-0.5217,3.44784 -1.18958,6.89567 -2.00366,10.34351c-2.26667,9.6 -5.8,18.2 -10.6,25.8c-4.8,7.6 -11.13333,13.73333 -19,18.4c-7.86667,4.66667 -17.4,7 -28.6,7c-11.2,0 -20.53333,-2.33333 -28,-7c-7.46667,-4.66667 -13.46667,-10.8 -18,-18.4c-4.53333,-7.6 -7.73333,-16.06667 -9.6,-25.4c-1.26174,-6.30869 -2.09705,-12.61738 -2.50594,-18.92608c-0.9308,-0.04262 -1.84882,-0.06392 -2.75406,-0.06392c-10.84,0 -19.79,3.07333 -26.85,9.22c-1.99843,1.73922 -3.77474,3.67036 -5.32892,5.79343c0.96573,6.92045 2.44537,13.64598 4.43892,20.17657c3.86667,12.66667 9.66667,23.73333 17.4,33.2c7.73333,9.46667 17.33333,17 28.8,22.6c11.46667,5.6 24.93333,8.4 40.4,8.4c13.33333,0 25.93333,-3 37.8,-9c11.86667,-6 20.73333,-15.4 26.6,-28.2l0.8,0l0,13.6c0,11.46667 -1.13333,22 -3.4,31.6c-0.33765,1.43005 -0.70637,2.82903 -1.10615,4.19694l17.22615,1.19306l-2.35,33.92l-37.36439,-2.58984c-2.08166,1.42552 -4.28353,2.7188 -6.60561,3.87984c-7.73333,3.86667 -17.2,5.8 -28.4,5.8c-5.6,0 -11.46667,-0.6 -17.6,-1.8c-6.13333,-1.2 -11.8,-3.13333 -17,-5.8c-4.03048,-2.06691 -7.58035,-4.61444 -10.6496,-7.64259l-39.71792,-2.75297c1.46464,4.69217 3.52048,8.95735 6.16752,12.79556c5.33333,7.73333 12.06667,14 20.2,18.8c8.13333,4.8 17.2,8.26667 27.2,10.4c10,2.13333 19.8,3.2 29.4,3.2c33.06667,0 57.33333,-8.4 72.8,-25.2c15.46667,-16.8 23.2,-42.13333 23.2,-76l0,-189.2l-32,0l0,29.6l-0.4,0c-6.13333,-11.46667 -14.66667,-20.06667 -25.6,-25.8c-10.93333,-5.73333 -22.93333,-8.6 -36,-8.6z');
|
||||
compareBoolean(function() { return g.intersect(u); },
|
||||
'M221.39699,321.44753c-1.33133,8.1895 -1.99699,16.24033 -1.99699,24.15247c0,6.84657 0.45369,13.52104 1.36108,20.02343c1.55418,-2.12307 3.33048,-4.05421 5.32892,-5.79343c7.06,-6.14667 16.01,-9.22 26.85,-9.22c0.90523,0 1.82325,0.02131 2.75406,0.06393c-0.19604,-3.02464 -0.29406,-6.04928 -0.29406,-9.07393c0,-8.55874 0.85278,-16.81649 2.55833,-24.77327c-1.67484,-0.05782 -3.32762,-0.08673 -4.95833,-0.08673c-7.16667,0 -13.91,0.55 -20.23,1.65c-4.0018,0.69746 -7.79281,1.71663 -11.37301,3.05753z M372.49385,462.19694c-2.28398,7.81499 -5.58193,14.61601 -9.89385,20.40306c-3.5453,4.75816 -7.74343,8.79822 -12.59439,12.12016l37.36439,2.58984l2.35,-33.92z M269.7504,489.15741c-0.8906,-0.87867 -1.74073,-1.79781 -2.5504,-2.75741c-3.6,-4.26667 -5.53333,-9.46667 -5.8,-15.6l-34,0c0.26863,5.64121 1.14612,10.84269 2.63248,15.60444z M374.32882,324.79678c0.71412,5.15644 1.07118,10.35751 1.07118,15.60322c0,6.15216 -0.46545,12.30433 -1.39634,18.45649l22.84634,1.58351l2.35,-33.92z');
|
||||
|
||||
var t = createPath('M283.8,165.2L283.8,227.2L248.6,227.2L248.6,257.2L283.8,257.2L283.8,388.8Q283.8,403.2,286.6,412Q289.4,420.8,295.2,425.6Q301,430.4,310.4,432.2Q319.8,434,333,434L359,434L359,404L343.4,404Q335.4,404,330.4,403.4Q325.4,402.8,322.6,400.8Q319.8,398.8,318.8,395.2Q317.8,391.6,317.8,385.6L317.8,257.2L359,257.2L359,227.2L317.8,227.2L317.8,165.2Z');
|
||||
var k = createPath('M402.62,200.96L193.81,395.8L217,420.66L274.33,367.18L317.8,370.38L287.14,495.82L316.61,527.41L352.79,373.29L463.72,381.94L463.72,381.94L432.61,348.6L302.11,341.25L425.82,225.82L402.62,200.96Z');
|
||||
compareBoolean(t.unite(k),
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,54.63059l-89.99,83.96941l23.19,24.86l57.33,-53.48l9.47,0.69712l0,20.92288c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c2.25382,1.86523 4.91535,3.39071 7.98458,4.57643l-16.04458,65.64357l29.47,31.59l21.9282,-93.41l20.4618,0l0,-30l-13.41924,0l7.20924,-30.71l110.93,8.65l-31.11,-33.34l-114.81,-6.46631l0,-15.52355l108.02,-100.79014l-23.2,-24.86l-43.62,40.70169l0,-14.46169l-41.2,0l0,-62z M317.8,280.10529l0,-22.90529l24.5476,0z',
|
||||
't.unite(k);');
|
||||
compareBoolean(t.subtract(k),
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,54.63059l34,-31.7253l0,-22.90529l24.5476,0l16.6524,-15.53831l0,-14.46169l-41.2,0l0,-62z M283.8,367.87712l0,20.92288c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c2.25382,1.86523 4.91535,3.39071 7.98458,4.57643l14.61542,-59.79643z M338.5382,434l20.4618,0l0,-30l-13.41924,0z M317.8,342.13369l0,-15.52355l-15.69,14.63986z',
|
||||
't.subtract(k);');
|
||||
compareBoolean(t.intersect(k),
|
||||
'M283.8,311.83059l0,56.04653l34,2.50288l0,-28.24631l-15.69,-0.88369l15.69,-14.63986l0,-46.50485z M303.18458,430.17643c2.19636,0.84851 4.6015,1.52303 7.21542,2.02357c6.26667,1.2 13.8,1.8 22.6,1.8l5.5382,0l7.04256,-30l-2.18076,0c-5.33333,0 -9.66667,-0.2 -13,-0.6c-3.33333,-0.4 -5.93333,-1.26667 -7.8,-2.6c-1.86667,-1.33333 -3.13333,-3.2 -3.8,-5.6c-0.66667,-2.4 -1,-5.6 -1,-9.6l0,-15.22z M342.3476,257.2l16.6524,0l0,-15.53831z',
|
||||
't.intersect(k);');
|
||||
compareBoolean(function() { return t.unite(k); },
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,54.63059l-89.99,83.96941l23.19,24.86l57.33,-53.48l9.47,0.69712l0,20.92288c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c2.25382,1.86523 4.91535,3.39071 7.98458,4.57643l-16.04458,65.64357l29.47,31.59l21.9282,-93.41l20.4618,0l0,-30l-13.41924,0l7.20924,-30.71l110.93,8.65l-31.11,-33.34l-114.81,-6.46631l0,-15.52355l108.02,-100.79014l-23.2,-24.86l-43.62,40.70169l0,-14.46169l-41.2,0l0,-62z M317.8,280.10529l0,-22.90529l24.5476,0z');
|
||||
compareBoolean(function() { return t.subtract(k); },
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,54.63059l34,-31.7253l0,-22.90529l24.5476,0l16.6524,-15.53831l0,-14.46169l-41.2,0l0,-62z M283.8,367.87712l0,20.92288c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c2.25382,1.86523 4.91535,3.39071 7.98458,4.57643l14.61542,-59.79643z M338.5382,434l20.4618,0l0,-30l-13.41924,0z M317.8,342.13369l0,-15.52355l-15.69,14.63986z');
|
||||
compareBoolean(function() { return t.intersect(k); },
|
||||
'M283.8,311.83059l0,56.04653l34,2.50288l0,-28.24631l-15.69,-0.88369l15.69,-14.63986l0,-46.50485z M303.18458,430.17643c2.19636,0.84851 4.6015,1.52303 7.21542,2.02357c6.26667,1.2 13.8,1.8 22.6,1.8l5.5382,0l7.04256,-30l-2.18076,0c-5.33333,0 -9.66667,-0.2 -13,-0.6c-3.33333,-0.4 -5.93333,-1.26667 -7.8,-2.6c-1.86667,-1.33333 -3.13333,-3.2 -3.8,-5.6c-0.66667,-2.4 -1,-5.6 -1,-9.6l0,-15.22z M342.3476,257.2l16.6524,0l0,-15.53831z');
|
||||
|
||||
var s = createPath('M239.6,157.4L239.6,443L273.6,443L273.6,326.2Q273.6,312.2,277.4,300.4Q281.2,288.6,288.8,279.8Q296.4,271,307.8,266.2Q319.2,261.4,334.8,261.4Q354.4,261.4,365.6,272.6Q376.8,283.8,376.8,303L376.8,443L410.8,443L410.8,307Q410.8,290.2,407.4,276.4Q404,262.6,395.6,252.6Q387.2,242.6,373.6,237Q360,231.4,339.6,231.4Q330.4,231.4,320.6,233.4Q310.8,235.4,301.8,239.6Q292.8,243.8,285.6,250.4Q278.4,257,274.4,266.6L273.6,266.6L273.6,157.4Z');
|
||||
var h = createPath('M255.73,157.4Q241.22,157.4,228.27,163.84Q215.15,170.35,205.35,186.39Q197.63,199.02,197.37,210.58Q197.1,222.14,201.68,232.67Q206.26,243.2,214.59,252.98Q222.91,262.75,232.38,271.81Q241.16,280.46,250.04,288.93Q258.93,297.41,265.14,305.66Q271.35,313.9,273.62,322.08Q275.88,330.27,271.3,337.78Q267.13,344.6,261.11,346.78Q256.67,348.39,251.68,348.39Q249.91,348.39,248.06,348.19Q241.04,347.41,233.75,344.37Q226.47,341.33,219.99,337.37Q212.82,332.99,206.76,327.18Q200.7,321.37,196.98,314.41Q193.26,307.45,192.95,299.52Q192.64,291.6,197.17,282.65L168.15,264.92Q159.38,281.59,158.61,295.89Q157.84,310.18,163.72,322.44Q169.59,334.7,180.65,344.98Q191.72,355.25,206.74,364.43Q218.34,371.52,231.89,375.81Q244.73,379.88,257.1,379.88Q257.79,379.88,258.48,379.86Q271.51,379.62,283.32,373.72Q295.14,367.81,303.27,354.5Q313.7,337.43,311,322.66Q308.31,307.89,298.74,294.78Q289.17,281.67,275.92,269.59Q262.68,257.51,252.07,246.11Q241.46,234.7,236.47,223.69Q231.48,212.67,238.36,201.41Q243.36,193.22,250.69,190.43Q255.91,188.44,261.46,188.44Q263.71,188.44,266,188.77Q273.99,189.89,282.12,193.46Q290.26,197.02,297.08,201.19Q305.96,206.61,313.28,213.43Q320.6,220.24,324.86,228.24Q329.12,236.23,329.15,245.39Q329.18,254.54,323.68,264.31L352.69,282.04Q362.02,265.23,362.86,250.05Q363.7,234.86,357.74,221.6Q351.77,208.35,340.34,197.15Q328.9,185.94,314.22,176.97Q300.91,168.84,285.86,163.16Q270.82,157.49,256.1,157.4Q255.92,157.4,255.73,157.4Z');
|
||||
compareBoolean(s.unite(h),
|
||||
'M239.6,157.4l0,2.11816c-3.87125,1.05014 -7.64792,2.49075 -11.33,4.32184c-8.74667,4.34 -16.38667,11.85667 -22.92,22.55c-5.14667,8.42 -7.80667,16.48333 -7.98,24.19c-0.18,7.70667 1.25667,15.07 4.31,22.09c3.05333,7.02 7.35667,13.79 12.91,20.31c5.54667,6.51333 11.47667,12.79 17.79,18.83c2.40106,2.36551 4.80772,4.72092 7.22,7.06623l0,67.58233c-1.93529,-0.57307 -3.88529,-1.26926 -5.85,-2.08856c-4.85333,-2.02667 -9.44,-4.36 -13.76,-7c-4.78,-2.92 -9.19,-6.31667 -13.23,-10.19c-4.04,-3.87333 -7.3,-8.13 -9.78,-12.77c-2.48,-4.64 -3.82333,-9.60333 -4.03,-14.89c-0.20667,-5.28 1.2,-10.90333 4.22,-16.87l-29.02,-17.73c-5.84667,11.11333 -9.02667,21.43667 -9.54,30.97c-0.51333,9.52667 1.19,18.37667 5.11,26.55c3.91333,8.17333 9.55667,15.68667 16.93,22.54c7.38,6.84667 16.07667,13.33 26.09,19.45c7.73333,4.72667 16.11667,8.52 25.15,11.38c2.58428,0.81916 5.15428,1.51467 7.71,2.08652l0,65.10348l34,0l0,-65.44295c3.30609,-0.97242 6.54609,-2.25143 9.72,-3.83705c7.88,-3.94 14.53,-10.34667 19.95,-19.22c6.95333,-11.38 9.53,-21.99333 7.73,-31.84c-1.79333,-9.84667 -5.88,-19.14 -12.26,-27.88c-3.36811,-4.614 -7.0781,-9.13232 -11.12995,-13.55494c0.38857,-0.4814 0.78522,-0.95642 1.18995,-1.42506c5.06667,-5.86667 11.4,-10.4 19,-13.6c5.08764,-2.14216 10.80266,-3.56732 17.14507,-4.27546c-0.394,0.79205 -0.81569,1.5872 -1.26507,2.38546l29.01,17.73c2.73672,-4.93079 4.92559,-9.7564 6.5666,-14.47683c2.30112,1.43007 4.41559,3.10902 6.3434,5.03683c7.46667,7.46667 11.2,17.6 11.2,30.4l0,140l34,0l0,-136c0,-11.2 -1.13333,-21.4 -3.4,-30.6c-2.26667,-9.2 -6.2,-17.13333 -11.8,-23.8c-5.6,-6.66667 -12.93333,-11.86667 -22,-15.6c-3.63009,-1.49474 -7.62353,-2.69025 -11.98032,-3.58654c-0.87044,-4.05782 -2.16367,-7.99564 -3.87968,-11.81346c-3.98,-8.83333 -9.78,-16.98333 -17.4,-24.45c-7.62667,-7.47333 -16.33333,-14.2 -26.12,-20.18c-8.87333,-5.42 -18.32667,-10.02333 -28.36,-13.81c-4.10454,-1.54739 -8.19121,-2.78309 -12.26,-3.70709l0,-2.05291z M239.6,199.51295l0,30.19548c-1.1819,-2.01601 -2.22524,-4.02215 -3.13,-6.01844c-3.32667,-7.34667 -2.69667,-14.77333 1.89,-22.28c0.40204,-0.65853 0.81537,-1.29088 1.24,-1.89705z M273.6,332.6753l0,-6.4753c0,-1.31917 0.0253,-2.62368 0.07591,-3.91355c0.94573,3.55949 0.92043,7.02244 -0.07591,10.38885z M326.73614,232.33536c-2.02539,0.28825 -4.07078,0.64313 -6.13614,1.06464c-6.53333,1.33333 -12.8,3.4 -18.8,6.2c-6,2.8 -11.4,6.4 -16.2,10.8c-4.8,4.4 -8.53333,9.8 -11.2,16.2l-0.8,0l0,-76.21948c2.82707,0.80022 5.66707,1.82671 8.52,3.07948c5.42667,2.37333 10.41333,4.95 14.96,7.73c5.92,3.61333 11.32,7.69333 16.2,12.24c4.88,4.54 8.74,9.47667 11.58,14.81c0.71467,1.34042 1.34005,2.70554 1.87614,4.09536z',
|
||||
's.unite(h);');
|
||||
compareBoolean(s.subtract(h),
|
||||
'M239.6,157.4l0,2.11816c5.20563,-1.41211 10.5823,-2.11816 16.13,-2.11816z M239.6,199.51295l0,30.19548c3.16376,5.39652 7.32042,10.86371 12.47,16.40156c7.07333,7.6 15.02333,15.42667 23.85,23.48c4.17006,3.80184 8.06674,7.68019 11.69005,11.63506c0.38857,-0.4814 0.78522,-0.95642 1.18995,-1.42506c5.06667,-5.86667 11.4,-10.4 19,-13.6c5.08764,-2.14216 10.80266,-3.56732 17.14507,-4.27546c2.82084,-5.67063 4.22248,-11.18214 4.20493,-16.53454c-0.01497,-4.56996 -0.81959,-8.92151 -2.41386,-13.05464c-2.02539,0.28825 -4.07078,0.64313 -6.13614,1.06464c-6.53333,1.33333 -12.8,3.4 -18.8,6.2c-6,2.8 -11.4,6.4 -16.2,10.8c-4.8,4.4 -8.53333,9.8 -11.2,16.2l-0.8,0l0,-76.21948c-2.5438,-0.72004 -5.07714,-1.25688 -7.6,-1.61052c-1.52667,-0.22 -3.04,-0.33 -4.54,-0.33c-3.7,0 -7.29,0.66333 -10.77,1.99c-4.29728,1.63566 -7.99395,4.66332 -11.09,9.08295z M239.6,278.87623l0,67.58233c2.85194,0.84451 5.67194,1.42165 8.46,1.73144c1.23333,0.13333 2.44,0.2 3.62,0.2c3.32667,0 6.47,-0.53667 9.43,-1.61c4.01333,-1.45333 7.41,-4.45333 10.19,-9c1.02221,-1.67616 1.78888,-3.37773 2.3,-5.1047l0,-6.4753c0,-1.31917 0.0253,-2.62368 0.07591,-3.91355c-0.01827,-0.06878 -0.03691,-0.1376 -0.05591,-0.20645c-1.51333,-5.45333 -4.34,-10.92667 -8.48,-16.42c-4.14,-5.5 -9.17333,-11.07667 -15.1,-16.73c-3.4916,-3.33038 -6.9716,-6.68164 -10.44,-10.05377z M239.6,377.89652l0,65.10348l34,0l0,-65.44295c-4.89512,1.4398 -9.93512,2.20745 -15.12,2.30295c-0.46,0.01333 -0.92,0.02 -1.38,0.02c-5.75698,0 -11.59032,-0.66116 -17.5,-1.98348z M359.2566,267.56317c2.30112,1.43007 4.41559,3.10902 6.3434,5.03683c7.46667,7.46667 11.2,17.6 11.2,30.4l0,140l34,0l0,-136c0,-11.2 -1.13333,-21.4 -3.4,-30.6c-2.26667,-9.2 -6.2,-17.13333 -11.8,-23.8c-5.6,-6.66667 -12.93333,-11.86667 -22,-15.6c-3.63009,-1.49474 -7.62353,-2.69025 -11.98032,-3.58654c1.14503,5.33787 1.55847,10.88338 1.24032,16.63654c-0.31361,5.66733 -1.51474,11.50505 -3.6034,17.51317z M273.6,159.45291l0,-2.05291l-17.5,0c5.79612,0.03544 11.62946,0.71974 17.5,2.05291z',
|
||||
's.subtract(h);');
|
||||
compareBoolean(s.intersect(h),
|
||||
'M239.6,159.51816l0,39.99479c3.09605,-4.41964 6.79272,-7.44729 11.09,-9.08295c3.48,-1.32667 7.07,-1.99 10.77,-1.99c1.5,0 3.01333,0.11 4.54,0.33c2.52286,0.35364 5.0562,0.89048 7.6,1.61052l0,-30.92761c-5.87054,-1.33317 -11.70388,-2.01747 -17.5,-2.05291l-0.37,0c-5.5477,0 -10.92437,0.70605 -16.13,2.11816z M239.6,229.70844l0,49.1678c3.4684,3.37213 6.9484,6.72338 10.44,10.05377c5.92667,5.65333 10.96,11.23 15.1,16.73c4.14,5.49333 6.96667,10.96667 8.48,16.42c0.019,0.06885 0.03764,0.13767 0.05591,0.20645c0.30745,-7.83617 1.54881,-15.13165 3.72409,-21.88645c2.33097,-7.23827 5.73432,-13.62991 10.21005,-19.17494c-3.62331,-3.95487 -7.51999,-7.83322 -11.69005,-11.63506c-8.82667,-8.05333 -16.77667,-15.88 -23.85,-23.48c-5.14958,-5.53786 -9.30624,-11.00505 -12.47,-16.40156z M239.6,346.45856l0,31.43796c5.90968,1.32232 11.74302,1.98348 17.5,1.98348c0.46,0 0.92,-0.00667 1.38,-0.02c5.18488,-0.0955 10.22488,-0.86315 15.12,-2.30295l0,-44.88175c-0.51112,1.72697 -1.27779,3.42854 -2.3,5.1047c-2.78,4.54667 -6.17667,7.54667 -10.19,9c-2.96,1.07333 -6.10333,1.61 -9.43,1.61c-1.18,0 -2.38667,-0.06667 -3.62,-0.2c-2.78806,-0.30978 -5.60806,-0.88693 -8.46,-1.73144z M324.94507,261.92454c3.13199,-0.34969 6.41696,-0.52454 9.85493,-0.52454c9.69299,0 17.84519,2.05439 24.4566,6.16317c2.08866,-6.00812 3.2898,-11.84584 3.6034,-17.51317c0.31815,-5.75315 -0.09529,-11.29867 -1.24032,-16.63654c-6.52492,-1.34231 -13.86481,-2.01346 -22.01968,-2.01346c-4.19442,0 -8.48237,0.31179 -12.86386,0.93536c1.59427,4.13313 2.39889,8.48468 2.41386,13.05464c0.01755,5.3524 -1.38409,10.86391 -4.20493,16.53454z',
|
||||
's.intersect(h);');
|
||||
compareBoolean(function() { return s.unite(h); },
|
||||
'M239.6,157.4l0,2.11816c-3.87125,1.05014 -7.64792,2.49075 -11.33,4.32184c-8.74667,4.34 -16.38667,11.85667 -22.92,22.55c-5.14667,8.42 -7.80667,16.48333 -7.98,24.19c-0.18,7.70667 1.25667,15.07 4.31,22.09c3.05333,7.02 7.35667,13.79 12.91,20.31c5.54667,6.51333 11.47667,12.79 17.79,18.83c2.40106,2.36551 4.80772,4.72092 7.22,7.06623l0,67.58233c-1.93529,-0.57307 -3.88529,-1.26926 -5.85,-2.08856c-4.85333,-2.02667 -9.44,-4.36 -13.76,-7c-4.78,-2.92 -9.19,-6.31667 -13.23,-10.19c-4.04,-3.87333 -7.3,-8.13 -9.78,-12.77c-2.48,-4.64 -3.82333,-9.60333 -4.03,-14.89c-0.20667,-5.28 1.2,-10.90333 4.22,-16.87l-29.02,-17.73c-5.84667,11.11333 -9.02667,21.43667 -9.54,30.97c-0.51333,9.52667 1.19,18.37667 5.11,26.55c3.91333,8.17333 9.55667,15.68667 16.93,22.54c7.38,6.84667 16.07667,13.33 26.09,19.45c7.73333,4.72667 16.11667,8.52 25.15,11.38c2.58428,0.81916 5.15428,1.51467 7.71,2.08652l0,65.10348l34,0l0,-65.44295c3.30609,-0.97242 6.54609,-2.25143 9.72,-3.83705c7.88,-3.94 14.53,-10.34667 19.95,-19.22c6.95333,-11.38 9.53,-21.99333 7.73,-31.84c-1.79333,-9.84667 -5.88,-19.14 -12.26,-27.88c-3.36811,-4.614 -7.0781,-9.13232 -11.12995,-13.55494c0.38857,-0.4814 0.78522,-0.95642 1.18995,-1.42506c5.06667,-5.86667 11.4,-10.4 19,-13.6c5.08764,-2.14216 10.80266,-3.56732 17.14507,-4.27546c-0.394,0.79205 -0.81569,1.5872 -1.26507,2.38546l29.01,17.73c2.73672,-4.93079 4.92559,-9.7564 6.5666,-14.47683c2.30112,1.43007 4.41559,3.10902 6.3434,5.03683c7.46667,7.46667 11.2,17.6 11.2,30.4l0,140l34,0l0,-136c0,-11.2 -1.13333,-21.4 -3.4,-30.6c-2.26667,-9.2 -6.2,-17.13333 -11.8,-23.8c-5.6,-6.66667 -12.93333,-11.86667 -22,-15.6c-3.63009,-1.49474 -7.62353,-2.69025 -11.98032,-3.58654c-0.87044,-4.05782 -2.16367,-7.99564 -3.87968,-11.81346c-3.98,-8.83333 -9.78,-16.98333 -17.4,-24.45c-7.62667,-7.47333 -16.33333,-14.2 -26.12,-20.18c-8.87333,-5.42 -18.32667,-10.02333 -28.36,-13.81c-4.10454,-1.54739 -8.19121,-2.78309 -12.26,-3.70709l0,-2.05291z M239.6,199.51295l0,30.19548c-1.1819,-2.01601 -2.22524,-4.02215 -3.13,-6.01844c-3.32667,-7.34667 -2.69667,-14.77333 1.89,-22.28c0.40204,-0.65853 0.81537,-1.29088 1.24,-1.89705z M273.6,332.6753l0,-6.4753c0,-1.31917 0.0253,-2.62368 0.07591,-3.91355c0.94573,3.55949 0.92043,7.02244 -0.07591,10.38885z M326.73614,232.33536c-2.02539,0.28825 -4.07078,0.64313 -6.13614,1.06464c-6.53333,1.33333 -12.8,3.4 -18.8,6.2c-6,2.8 -11.4,6.4 -16.2,10.8c-4.8,4.4 -8.53333,9.8 -11.2,16.2l-0.8,0l0,-76.21948c2.82707,0.80022 5.66707,1.82671 8.52,3.07948c5.42667,2.37333 10.41333,4.95 14.96,7.73c5.92,3.61333 11.32,7.69333 16.2,12.24c4.88,4.54 8.74,9.47667 11.58,14.81c0.71467,1.34042 1.34005,2.70554 1.87614,4.09536z');
|
||||
compareBoolean(function() { return s.subtract(h); },
|
||||
'M239.6,157.4l0,2.11816c5.20563,-1.41211 10.5823,-2.11816 16.13,-2.11816z M239.6,199.51295l0,30.19548c3.16376,5.39652 7.32042,10.86371 12.47,16.40156c7.07333,7.6 15.02333,15.42667 23.85,23.48c4.17006,3.80184 8.06674,7.68019 11.69005,11.63506c0.38857,-0.4814 0.78522,-0.95642 1.18995,-1.42506c5.06667,-5.86667 11.4,-10.4 19,-13.6c5.08764,-2.14216 10.80266,-3.56732 17.14507,-4.27546c2.82084,-5.67063 4.22248,-11.18214 4.20493,-16.53454c-0.01497,-4.56996 -0.81959,-8.92151 -2.41386,-13.05464c-2.02539,0.28825 -4.07078,0.64313 -6.13614,1.06464c-6.53333,1.33333 -12.8,3.4 -18.8,6.2c-6,2.8 -11.4,6.4 -16.2,10.8c-4.8,4.4 -8.53333,9.8 -11.2,16.2l-0.8,0l0,-76.21948c-2.5438,-0.72004 -5.07714,-1.25688 -7.6,-1.61052c-1.52667,-0.22 -3.04,-0.33 -4.54,-0.33c-3.7,0 -7.29,0.66333 -10.77,1.99c-4.29728,1.63566 -7.99395,4.66332 -11.09,9.08295z M239.6,278.87623l0,67.58233c2.85194,0.84451 5.67194,1.42165 8.46,1.73144c1.23333,0.13333 2.44,0.2 3.62,0.2c3.32667,0 6.47,-0.53667 9.43,-1.61c4.01333,-1.45333 7.41,-4.45333 10.19,-9c1.02221,-1.67616 1.78888,-3.37773 2.3,-5.1047l0,-6.4753c0,-1.31917 0.0253,-2.62368 0.07591,-3.91355c-0.01827,-0.06878 -0.03691,-0.1376 -0.05591,-0.20645c-1.51333,-5.45333 -4.34,-10.92667 -8.48,-16.42c-4.14,-5.5 -9.17333,-11.07667 -15.1,-16.73c-3.4916,-3.33038 -6.9716,-6.68164 -10.44,-10.05377z M239.6,377.89652l0,65.10348l34,0l0,-65.44295c-4.89512,1.4398 -9.93512,2.20745 -15.12,2.30295c-0.46,0.01333 -0.92,0.02 -1.38,0.02c-5.75698,0 -11.59032,-0.66116 -17.5,-1.98348z M359.2566,267.56317c2.30112,1.43007 4.41559,3.10902 6.3434,5.03683c7.46667,7.46667 11.2,17.6 11.2,30.4l0,140l34,0l0,-136c0,-11.2 -1.13333,-21.4 -3.4,-30.6c-2.26667,-9.2 -6.2,-17.13333 -11.8,-23.8c-5.6,-6.66667 -12.93333,-11.86667 -22,-15.6c-3.63009,-1.49474 -7.62353,-2.69025 -11.98032,-3.58654c1.14503,5.33787 1.55847,10.88338 1.24032,16.63654c-0.31361,5.66733 -1.51474,11.50505 -3.6034,17.51317z M273.6,159.45291l0,-2.05291l-17.5,0c5.79612,0.03544 11.62946,0.71974 17.5,2.05291z');
|
||||
compareBoolean(function() { return s.intersect(h); },
|
||||
'M239.6,159.51816l0,39.99479c3.09605,-4.41964 6.79272,-7.44729 11.09,-9.08295c3.48,-1.32667 7.07,-1.99 10.77,-1.99c1.5,0 3.01333,0.11 4.54,0.33c2.52286,0.35364 5.0562,0.89048 7.6,1.61052l0,-30.92761c-5.87054,-1.33317 -11.70388,-2.01747 -17.5,-2.05291l-0.37,0c-5.5477,0 -10.92437,0.70605 -16.13,2.11816z M239.6,229.70844l0,49.1678c3.4684,3.37213 6.9484,6.72338 10.44,10.05377c5.92667,5.65333 10.96,11.23 15.1,16.73c4.14,5.49333 6.96667,10.96667 8.48,16.42c0.019,0.06885 0.03764,0.13767 0.05591,0.20645c0.30745,-7.83617 1.54881,-15.13165 3.72409,-21.88645c2.33097,-7.23827 5.73432,-13.62991 10.21005,-19.17494c-3.62331,-3.95487 -7.51999,-7.83322 -11.69005,-11.63506c-8.82667,-8.05333 -16.77667,-15.88 -23.85,-23.48c-5.14958,-5.53786 -9.30624,-11.00505 -12.47,-16.40156z M239.6,346.45856l0,31.43796c5.90968,1.32232 11.74302,1.98348 17.5,1.98348c0.46,0 0.92,-0.00667 1.38,-0.02c5.18488,-0.0955 10.22488,-0.86315 15.12,-2.30295l0,-44.88175c-0.51112,1.72697 -1.27779,3.42854 -2.3,5.1047c-2.78,4.54667 -6.17667,7.54667 -10.19,9c-2.96,1.07333 -6.10333,1.61 -9.43,1.61c-1.18,0 -2.38667,-0.06667 -3.62,-0.2c-2.78806,-0.30978 -5.60806,-0.88693 -8.46,-1.73144z M324.94507,261.92454c3.13199,-0.34969 6.41696,-0.52454 9.85493,-0.52454c9.69299,0 17.84519,2.05439 24.4566,6.16317c2.08866,-6.00812 3.2898,-11.84584 3.6034,-17.51317c0.31815,-5.75315 -0.09529,-11.29867 -1.24032,-16.63654c-6.52492,-1.34231 -13.86481,-2.01346 -22.01968,-2.01346c-4.19442,0 -8.48237,0.31179 -12.86386,0.93536c1.59427,4.13313 2.39889,8.48468 2.41386,13.05464c0.01755,5.3524 -1.38409,10.86391 -4.20493,16.53454z');
|
||||
|
||||
var c1 = createPath('M318,196.4Q293.6,196.4,275.2,205Q256.8,213.6,244.6,228.6Q232.4,243.6,226.4,263.8Q220.4,284,220.4,307.2Q220.4,330.4,226.6,349.8Q232.8,369.2,245,383.2Q257.2,397.2,275.4,404.8Q293.6,412.4,317.2,412.4Q356.8,412.4,379.8,391.6Q402.8,370.8,408.4,332.4L373.6,332.4Q370.4,356.4,356.2,369.6Q342,382.8,316.8,382.8Q300.8,382.8,289.2,376.4Q277.6,370,270.4,359.4Q263.2,348.8,259.8,335.2Q256.4,321.6,256.4,307.2Q256.4,291.6,259.6,277Q262.8,262.4,270.2,251.2Q277.6,240,290,233.2Q302.4,226.4,320.8,226.4Q342.4,226.4,355.2,237.2Q368,248,372,267.6L407.2,267.6Q405.2,249.2,397.6,235.8Q390,222.4,378.2,213.6Q366.4,204.8,351,200.6Q335.6,196.4,318,196.4Z');
|
||||
var c2 = createPath('M292.67,129.19Q280.2,129.19,269.66,132.55Q254.98,137.23,243.94,146.96Q232.9,156.69,225.61,170.89Q218.33,185.1,214.7,202.32Q209.67,226.2,214.3,245.97Q218.92,265.75,231.08,280.78Q243.24,295.81,261.77,305.85Q280.3,315.88,303.01,320.66Q318.85,324,333.51,324Q339.85,324,345.97,323.38Q366.23,321.31,382.44,312.26Q398.66,303.2,409.85,286.96Q421.03,270.72,425.9,247.63Q434.06,208.88,418.45,182.08Q402.84,155.29,366.42,141.89L359.24,175.95Q382.07,184.03,392.06,200.64Q402.05,217.26,396.85,241.92Q393.55,257.57,384.9,267.6Q376.25,277.64,364.39,282.5Q352.53,287.36,338.53,287.88Q336.42,287.96,334.32,287.96Q322.4,287.96,310.43,285.44Q295.16,282.22,281.53,276.08Q267.91,269.94,258.47,260.39Q249.04,250.84,244.94,237.3Q240.84,223.77,244.64,205.76Q249.09,184.63,262.29,174.33Q275.34,164.15,295.02,164.15Q295.26,164.15,295.5,164.16L302.76,129.71Q297.57,129.19,292.67,129.19Z');
|
||||
compareBoolean(c1.unite(c2),
|
||||
'M318,196.4c-16.26667,0 -30.53333,2.86667 -42.8,8.6c-12.26667,5.73333 -22.46667,13.6 -30.6,23.6c-0.41596,0.51143 -0.82652,1.02739 -1.23167,1.54789c-1.04296,-7.29746 -0.61907,-15.42676 1.27167,-24.38789c2.96667,-14.08667 8.85,-24.56333 17.65,-31.43c8.7,-6.78667 19.61,-10.18 32.73,-10.18c0.16,0 0.32,0.00333 0.48,0.01l7.26,-34.45c-3.46,-0.34667 -6.82333,-0.52 -10.09,-0.52c-8.31333,0 -15.98333,1.12 -23.01,3.36c-9.78667,3.12 -18.36,7.92333 -25.72,14.41c-7.36,6.48667 -13.47,14.46333 -18.33,23.93c-4.85333,9.47333 -8.49,19.95 -10.91,31.43c-3.35333,15.92 -3.48667,30.47 -0.4,43.65c2.14848,9.19846 5.51991,17.62649 10.11429,25.28409c-2.67619,11.31292 -4.01429,23.29489 -4.01429,35.94591c0,15.46667 2.06667,29.66667 6.2,42.6c4.13333,12.93333 10.26667,24.06667 18.4,33.4c8.13333,9.33333 18.26667,16.53333 30.4,21.6c12.13333,5.06667 26.06667,7.6 41.8,7.6c26.4,0 47.26667,-6.93333 62.6,-20.8c15.33333,-13.86667 24.86667,-33.6 28.6,-59.2l-34.8,0c-2.13333,16 -7.93333,28.4 -17.4,37.2c-9.46667,8.8 -22.6,13.2 -39.4,13.2c-10.66667,0 -19.86667,-2.13333 -27.6,-6.4c-7.73333,-4.26667 -14,-9.93333 -18.8,-17c-4.8,-7.06667 -8.33333,-15.13333 -10.6,-24.2c-2.26667,-9.06667 -3.4,-18.4 -3.4,-28c0,-1.47564 0.02147,-2.94456 0.06442,-4.40678c1.72272,1.0548 3.49125,2.07373 5.30558,3.05678c12.35333,6.68667 26.1,11.62333 41.24,14.81c10.56,2.22667 20.72667,3.34 30.5,3.34c4.22667,0 8.38,-0.20667 12.46,-0.62c13.50667,-1.38 25.66333,-5.08667 36.47,-11.12c10.81333,-6.04 19.95,-14.47333 27.41,-25.3c7.45333,-10.82667 12.80333,-23.93667 16.05,-39.33c5.44,-25.83333 2.95667,-47.68333 -7.45,-65.55c-10.40667,-17.86 -27.75,-31.25667 -52.03,-40.19l-7.18,34.06c15.22,5.38667 26.16,13.61667 32.82,24.69c5.88091,9.78386 7.81382,21.65737 5.79873,35.62055c-0.0857,-0.154 -0.17194,-0.30752 -0.25873,-0.46055c-5.06667,-8.93333 -11.53333,-16.33333 -19.4,-22.2c-7.86667,-5.86667 -16.93333,-10.2 -27.2,-13c-10.26667,-2.8 -21.26667,-4.2 -33,-4.2z M263.24177,264.77742c1.88233,-4.87963 4.20174,-9.40544 6.95823,-13.57742c4.93333,-7.46667 11.53333,-13.46667 19.8,-18c8.26667,-4.53333 18.53333,-6.8 30.8,-6.8c14.4,0 25.86667,3.6 34.4,10.8c8.53333,7.2 14.13333,17.33333 16.8,30.4l12.9,0c-5.76667,6.69333 -12.60333,11.66 -20.51,14.9c-7.90667,3.24 -16.52667,5.03333 -25.86,5.38c-1.40667,0.05333 -2.81,0.08 -4.21,0.08c-7.94667,0 -15.91,-0.84 -23.89,-2.52c-10.18,-2.14667 -19.81333,-5.26667 -28.9,-9.36c-6.90089,-3.11097 -12.99696,-6.8785 -18.28823,-11.30258z',
|
||||
'c1.unite(c2);');
|
||||
compareBoolean(c1.subtract(c2),
|
||||
'M318,196.4c-16.26667,0 -30.53333,2.86667 -42.8,8.6c-12.26667,5.73333 -22.46667,13.6 -30.6,23.6c-0.41596,0.51143 -0.82652,1.02739 -1.23167,1.54789c0.35446,2.48012 0.87835,4.86415 1.57167,7.15211c2.73333,9.02667 7.24333,16.72333 13.53,23.09c1.51034,1.52794 3.10093,2.99041 4.77177,4.38742c1.88233,-4.87963 4.20174,-9.40544 6.95823,-13.57742c4.93333,-7.46667 11.53333,-13.46667 19.8,-18c8.26667,-4.53333 18.53333,-6.8 30.8,-6.8c14.4,0 25.86667,3.6 34.4,10.8c8.53333,7.2 14.13333,17.33333 16.8,30.4l12.9,0c5.76667,-6.68667 9.75,-15.24667 11.95,-25.68c0.40553,-1.92316 0.74178,-3.80964 1.00873,-5.65945c-0.0857,-0.154 -0.17194,-0.30752 -0.25873,-0.46055c-5.06667,-8.93333 -11.53333,-16.33333 -19.4,-22.2c-7.86667,-5.86667 -16.93333,-10.2 -27.2,-13c-10.26667,-2.8 -21.26667,-4.2 -33,-4.2z M224.41429,271.25409c-2.67619,11.31292 -4.01429,23.29489 -4.01429,35.94591c0,15.46667 2.06667,29.66667 6.2,42.6c4.13333,12.93333 10.26667,24.06667 18.4,33.4c8.13333,9.33333 18.26667,16.53333 30.4,21.6c12.13333,5.06667 26.06667,7.6 41.8,7.6c26.4,0 47.26667,-6.93333 62.6,-20.8c15.33333,-13.86667 24.86667,-33.6 28.6,-59.2l-34.8,0c-2.13333,16 -7.93333,28.4 -17.4,37.2c-9.46667,8.8 -22.6,13.2 -39.4,13.2c-10.66667,0 -19.86667,-2.13333 -27.6,-6.4c-7.73333,-4.26667 -14,-9.93333 -18.8,-17c-4.8,-7.06667 -8.33333,-15.13333 -10.6,-24.2c-2.26667,-9.06667 -3.4,-18.4 -3.4,-28c0,-1.47564 0.02147,-2.94456 0.06442,-4.40678c-10.0069,-6.12711 -18.46838,-13.46486 -25.38442,-22.01322c-2.4518,-3.03047 -4.6737,-6.20578 -6.66571,-9.52591z',
|
||||
'c1.subtract(c2);');
|
||||
compareBoolean(c1.intersect(c2),
|
||||
'M243.36833,230.14789c-7.51679,9.6568 -13.1729,20.87417 -16.96833,33.65211c-0.72818,2.45155 -1.39009,4.93625 -1.98571,7.45409c1.992,3.32013 4.21391,6.49544 6.66571,9.52591c6.91604,8.54837 15.37752,15.88611 25.38442,22.01322c0.25975,-8.84319 1.30494,-17.44093 3.13558,-25.79322c0.94134,-4.29486 2.15526,-8.36905 3.64177,-12.22258c-1.67084,-1.39701 -3.26143,-2.85948 -4.77177,-4.38742c-6.28667,-6.36667 -10.79667,-14.06333 -13.53,-23.09c-0.69332,-2.28796 -1.21721,-4.67199 -1.57167,-7.15211z M384.9,267.6l22.3,0c-1.31049,-12.05654 -4.42425,-22.50303 -9.34127,-31.33945c-0.26695,1.84981 -0.6032,3.7363 -1.00873,5.65945c-2.2,10.43333 -6.18333,18.99333 -11.95,25.68z',
|
||||
'c1.intersect(c2);');
|
||||
compareBoolean(function() { return c1.unite(c2); },
|
||||
'M318,196.4c-16.26667,0 -30.53333,2.86667 -42.8,8.6c-12.26667,5.73333 -22.46667,13.6 -30.6,23.6c-0.41596,0.51143 -0.82652,1.02739 -1.23167,1.54789c-1.04296,-7.29746 -0.61907,-15.42676 1.27167,-24.38789c2.96667,-14.08667 8.85,-24.56333 17.65,-31.43c8.7,-6.78667 19.61,-10.18 32.73,-10.18c0.16,0 0.32,0.00333 0.48,0.01l7.26,-34.45c-3.46,-0.34667 -6.82333,-0.52 -10.09,-0.52c-8.31333,0 -15.98333,1.12 -23.01,3.36c-9.78667,3.12 -18.36,7.92333 -25.72,14.41c-7.36,6.48667 -13.47,14.46333 -18.33,23.93c-4.85333,9.47333 -8.49,19.95 -10.91,31.43c-3.35333,15.92 -3.48667,30.47 -0.4,43.65c2.14848,9.19846 5.51991,17.62649 10.11429,25.28409c-2.67619,11.31292 -4.01429,23.29489 -4.01429,35.94591c0,15.46667 2.06667,29.66667 6.2,42.6c4.13333,12.93333 10.26667,24.06667 18.4,33.4c8.13333,9.33333 18.26667,16.53333 30.4,21.6c12.13333,5.06667 26.06667,7.6 41.8,7.6c26.4,0 47.26667,-6.93333 62.6,-20.8c15.33333,-13.86667 24.86667,-33.6 28.6,-59.2l-34.8,0c-2.13333,16 -7.93333,28.4 -17.4,37.2c-9.46667,8.8 -22.6,13.2 -39.4,13.2c-10.66667,0 -19.86667,-2.13333 -27.6,-6.4c-7.73333,-4.26667 -14,-9.93333 -18.8,-17c-4.8,-7.06667 -8.33333,-15.13333 -10.6,-24.2c-2.26667,-9.06667 -3.4,-18.4 -3.4,-28c0,-1.47564 0.02147,-2.94456 0.06442,-4.40678c1.72272,1.0548 3.49125,2.07373 5.30558,3.05678c12.35333,6.68667 26.1,11.62333 41.24,14.81c10.56,2.22667 20.72667,3.34 30.5,3.34c4.22667,0 8.38,-0.20667 12.46,-0.62c13.50667,-1.38 25.66333,-5.08667 36.47,-11.12c10.81333,-6.04 19.95,-14.47333 27.41,-25.3c7.45333,-10.82667 12.80333,-23.93667 16.05,-39.33c5.44,-25.83333 2.95667,-47.68333 -7.45,-65.55c-10.40667,-17.86 -27.75,-31.25667 -52.03,-40.19l-7.18,34.06c15.22,5.38667 26.16,13.61667 32.82,24.69c5.88091,9.78386 7.81382,21.65737 5.79873,35.62055c-0.0857,-0.154 -0.17194,-0.30752 -0.25873,-0.46055c-5.06667,-8.93333 -11.53333,-16.33333 -19.4,-22.2c-7.86667,-5.86667 -16.93333,-10.2 -27.2,-13c-10.26667,-2.8 -21.26667,-4.2 -33,-4.2z M263.24177,264.77742c1.88233,-4.87963 4.20174,-9.40544 6.95823,-13.57742c4.93333,-7.46667 11.53333,-13.46667 19.8,-18c8.26667,-4.53333 18.53333,-6.8 30.8,-6.8c14.4,0 25.86667,3.6 34.4,10.8c8.53333,7.2 14.13333,17.33333 16.8,30.4l12.9,0c-5.76667,6.69333 -12.60333,11.66 -20.51,14.9c-7.90667,3.24 -16.52667,5.03333 -25.86,5.38c-1.40667,0.05333 -2.81,0.08 -4.21,0.08c-7.94667,0 -15.91,-0.84 -23.89,-2.52c-10.18,-2.14667 -19.81333,-5.26667 -28.9,-9.36c-6.90089,-3.11097 -12.99696,-6.8785 -18.28823,-11.30258z');
|
||||
compareBoolean(function() { return c1.subtract(c2); },
|
||||
'M318,196.4c-16.26667,0 -30.53333,2.86667 -42.8,8.6c-12.26667,5.73333 -22.46667,13.6 -30.6,23.6c-0.41596,0.51143 -0.82652,1.02739 -1.23167,1.54789c0.35446,2.48012 0.87835,4.86415 1.57167,7.15211c2.73333,9.02667 7.24333,16.72333 13.53,23.09c1.51034,1.52794 3.10093,2.99041 4.77177,4.38742c1.88233,-4.87963 4.20174,-9.40544 6.95823,-13.57742c4.93333,-7.46667 11.53333,-13.46667 19.8,-18c8.26667,-4.53333 18.53333,-6.8 30.8,-6.8c14.4,0 25.86667,3.6 34.4,10.8c8.53333,7.2 14.13333,17.33333 16.8,30.4l12.9,0c5.76667,-6.68667 9.75,-15.24667 11.95,-25.68c0.40553,-1.92316 0.74178,-3.80964 1.00873,-5.65945c-0.0857,-0.154 -0.17194,-0.30752 -0.25873,-0.46055c-5.06667,-8.93333 -11.53333,-16.33333 -19.4,-22.2c-7.86667,-5.86667 -16.93333,-10.2 -27.2,-13c-10.26667,-2.8 -21.26667,-4.2 -33,-4.2z M224.41429,271.25409c-2.67619,11.31292 -4.01429,23.29489 -4.01429,35.94591c0,15.46667 2.06667,29.66667 6.2,42.6c4.13333,12.93333 10.26667,24.06667 18.4,33.4c8.13333,9.33333 18.26667,16.53333 30.4,21.6c12.13333,5.06667 26.06667,7.6 41.8,7.6c26.4,0 47.26667,-6.93333 62.6,-20.8c15.33333,-13.86667 24.86667,-33.6 28.6,-59.2l-34.8,0c-2.13333,16 -7.93333,28.4 -17.4,37.2c-9.46667,8.8 -22.6,13.2 -39.4,13.2c-10.66667,0 -19.86667,-2.13333 -27.6,-6.4c-7.73333,-4.26667 -14,-9.93333 -18.8,-17c-4.8,-7.06667 -8.33333,-15.13333 -10.6,-24.2c-2.26667,-9.06667 -3.4,-18.4 -3.4,-28c0,-1.47564 0.02147,-2.94456 0.06442,-4.40678c-10.0069,-6.12711 -18.46838,-13.46486 -25.38442,-22.01322c-2.4518,-3.03047 -4.6737,-6.20578 -6.66571,-9.52591z');
|
||||
compareBoolean(function() { return c1.intersect(c2); },
|
||||
'M243.36833,230.14789c-7.51679,9.6568 -13.1729,20.87417 -16.96833,33.65211c-0.72818,2.45155 -1.39009,4.93625 -1.98571,7.45409c1.992,3.32013 4.21391,6.49544 6.66571,9.52591c6.91604,8.54837 15.37752,15.88611 25.38442,22.01322c0.25975,-8.84319 1.30494,-17.44093 3.13558,-25.79322c0.94134,-4.29486 2.15526,-8.36905 3.64177,-12.22258c-1.67084,-1.39701 -3.26143,-2.85948 -4.77177,-4.38742c-6.28667,-6.36667 -10.79667,-14.06333 -13.53,-23.09c-0.69332,-2.28796 -1.21721,-4.67199 -1.57167,-7.15211z M384.9,267.6l22.3,0c-1.31049,-12.05654 -4.42425,-22.50303 -9.34127,-31.33945c-0.26695,1.84981 -0.6032,3.7363 -1.00873,5.65945c-2.2,10.43333 -6.18333,18.99333 -11.95,25.68z');
|
||||
|
||||
var a1 = createPath('M356.6,301.2L356.6,336Q356.6,343.2,353,351.4Q349.4,359.6,341.8,366.6Q334.2,373.6,322.2,378.2Q310.2,382.8,293.4,382.8Q285.8,382.8,278.4,381.2Q271,379.6,265.6,376Q260.2,372.4,256.8,366.6Q253.4,360.8,253.4,352.4Q253.4,339.6,259.2,332.2Q265,324.8,274.2,320.8Q283.4,316.8,295,315Q306.6,313.2,318,311.8Q329.4,310.4,339.8,308.2Q350.2,306,356.6,301.2Z M313,196.4Q295.8,196.4,280.2,200Q264.6,203.6,252.6,211.8Q240.6,220,233.4,233.2Q226.2,246.4,225.4,265.6L259.4,265.6Q260.6,242.8,275,234.6Q289.4,226.4,311,226.4Q319,226.4,327.2,227.6Q335.4,228.8,342,232.4Q348.6,236,352.8,242.8Q357,249.6,357,260.8Q357,270.4,351.4,275.4Q345.8,280.4,336.2,283Q326.6,285.6,314,287Q301.4,288.4,287.4,291.2Q274.2,293.6,261.6,297.2Q249,300.8,239.2,307.8Q229.4,314.8,223.4,326Q217.4,337.2,217.4,354.8Q217.4,370.4,222.8,381.4Q228.2,392.4,237.6,399.4Q247,406.4,259.4,409.4Q271.8,412.4,285.8,412.4Q307.4,412.4,326,405Q344.6,397.6,358.6,380.8Q358.6,397.6,366.4,405Q374.2,412.4,387.4,412.4Q403,412.4,411.8,407.2L411.8,380.8Q405.8,382.8,401.4,382.8Q393.4,382.8,392,377.2Q390.6,371.6,390.6,359.6L390.6,253.2Q390.6,235.2,383.8,224Q377,212.8,365.8,206.6Q354.6,200.4,340.8,198.4Q327,196.4,313,196.4Z');
|
||||
var a2 = createPath('M318.28,246.42L351.45,256.96Q358.31,259.14,365.03,265.05Q371.76,270.96,376.13,280.33Q380.5,289.69,381.25,302.52Q382,315.35,376.91,331.36Q374.61,338.6,370.85,345.17Q367.08,351.74,362.02,355.8Q356.95,359.85,350.39,361.34Q347.98,361.88,345.36,361.88Q340.89,361.88,335.83,360.28Q323.63,356.4,318.33,348.63Q313.04,340.87,312.01,330.89Q310.99,320.91,312.78,309.31Q314.58,297.71,316.7,286.42Q318.81,275.13,319.87,264.55Q320.92,253.97,318.28,246.42Z M262.73,196Q257.55,196,252.94,197.12Q240.21,200.21,230.91,209.01Q221.61,217.81,215.52,230.35Q209.44,242.9,205.2,256.24Q199.99,272.63,198.7,288.59Q197.41,304.55,201.59,318.47Q205.77,332.39,216.17,343.25Q226.57,354.11,244.63,360.68L254.92,328.28Q233.56,320.23,230.1,304.02Q226.65,287.82,233.19,267.23Q235.61,259.61,239.23,252.16Q242.86,244.7,248.29,239.5Q253.72,234.3,261.47,232.36Q264.3,231.65,267.51,231.65Q273.11,231.65,279.9,233.81Q289.05,236.71,292.12,243.56Q295.19,250.42,294.76,260.35Q294.33,270.29,291.85,282.72Q289.37,295.15,287.8,309.34Q286.09,322.65,285.7,335.75Q285.32,348.85,289.02,360.31Q292.73,371.77,301.59,380.88Q310.44,389.99,327.22,395.32Q337.96,398.73,347.26,398.73Q350.84,398.73,354.2,398.22Q366.32,396.41,375.84,389.57Q385.36,382.73,391.97,371.82Q398.59,360.91,402.82,347.57Q409.36,326.98,407.94,307.01Q406.52,287.05,394.75,268.62L394.75,268.62Q402.67,271.13,408.98,271.13Q415.42,271.13,420.18,268.51Q429.59,263.32,433.59,250.74Q438.31,235.87,436.02,225.91L410.86,217.91L410.86,217.91Q410.95,224.24,409.62,228.43Q407.3,235.71,401.95,235.71Q401.69,235.71,401.43,235.69Q395.67,235.33,384.23,231.7L282.83,199.48Q271.88,196,262.73,196Z');
|
||||
compareBoolean(a1.unite(a2),
|
||||
'M313,196.4c-10.54499,0 -20.63894,1.01484 -30.28184,3.04453c-7.2566,-2.29635 -13.91932,-3.44453 -19.98816,-3.44453c-3.45333,0 -6.71667,0.37333 -9.79,1.12c-8.48667,2.06 -15.83,6.02333 -22.03,11.89c-6.2,5.86667 -11.33,12.98 -15.39,21.34c-4.05333,8.36667 -7.49333,16.99667 -10.32,25.89c-3.47333,10.92667 -5.64,21.71 -6.5,32.35c-0.86,10.64 0.10333,20.6 2.89,29.88c2.78667,9.28 7.64667,17.54 14.58,24.78c0.56619,0.59124 1.14941,1.17293 1.74966,1.7451c-0.34644,3.08353 -0.51966,6.35183 -0.51966,9.8049c0,10.4 1.8,19.26667 5.4,26.6c3.6,7.33333 8.53333,13.33333 14.8,18c6.26667,4.66667 13.53333,8 21.8,10c8.26667,2 17.06667,3 26.4,3c14.4,0 27.8,-2.46667 40.2,-7.4c4.64254,-1.84703 9.07016,-4.13328 13.28283,-6.85874c2.74193,0.39249 5.40098,0.58874 7.97717,0.58874c2.38667,0 4.7,-0.17 6.94,-0.51c2.36408,-0.35305 4.65397,-0.84964 6.86967,-1.48975c1.27956,3.35579 3.05634,6.11238 5.33033,8.26975c5.2,4.93333 12.2,7.4 21,7.4c10.4,0 18.53333,-1.73333 24.4,-5.2l0,-26.4c-4,1.33333 -7.46667,2 -10.4,2c-5.33333,0 -8.46667,-1.86667 -9.4,-5.6c-0.29733,-1.18932 -0.5473,-2.59514 -0.74991,-4.21747c0.24278,-0.38358 0.48275,-0.77109 0.71991,-1.16253c4.41333,-7.27333 8.03,-15.35667 10.85,-24.25c4.36,-13.72667 6.06667,-27.24667 5.12,-40.56c-0.94667,-13.30667 -5.34333,-26.10333 -13.19,-38.39c5.28,1.67333 10.02333,2.51 14.23,2.51c4.29333,0 8.02667,-0.87333 11.2,-2.62c6.27333,-3.46 10.74333,-9.38333 13.41,-17.77c3.14667,-9.91333 3.95667,-18.19 2.43,-24.83l-25.16,-8c0.06,4.22 -0.35333,7.72667 -1.24,10.52c-1.54667,4.85333 -4.10333,7.28 -7.67,7.28c-0.17333,0 -0.34667,-0.00667 -0.52,-0.02c-3.22245,-0.2014 -7.77824,-1.17041 -13.66735,-2.90702c-1.03676,-3.21178 -2.35764,-6.13944 -3.96265,-8.78298c-4.53333,-7.46667 -10.53333,-13.26667 -18,-17.4c-7.46667,-4.13333 -15.8,-6.86667 -25,-8.2c-9.2,-1.33333 -18.46667,-2 -27.8,-2z M233.72204,265.6l25.67796,0c0.8,-15.2 6,-25.53333 15.6,-31c0.88297,-0.5028 1.78624,-0.98248 2.70981,-1.43904c0.71944,0.19707 1.4495,0.41341 2.19019,0.64904c6.1,1.93333 10.17333,5.18333 12.22,9.75c2.04667,4.57333 2.92667,10.17 2.64,16.79c-0.28667,6.62667 -1.25667,14.08333 -2.91,22.37c-0.51367,2.57457 -0.99806,5.20577 -1.45318,7.8936c-0.99354,0.19006 -1.99248,0.38553 -2.99682,0.5864c-8.8,1.6 -17.4,3.6 -25.8,6c-8.4,2.4 -15.86667,5.93333 -22.4,10.6c-2.02434,1.44596 -3.92707,3.02632 -5.70819,4.74109c-1.60844,-2.62254 -2.73904,-5.4629 -3.39181,-8.52109c-2.3,-10.8 -1.27,-23.06333 3.09,-36.79c0.17276,-0.54398 0.35011,-1.08732 0.53204,-1.63z M356.9816,259.33651c0.01227,0.4814 0.0184,0.96924 0.0184,1.46349c0,6.4 -1.86667,11.26667 -5.6,14.6c-3.73333,3.33333 -8.8,5.86667 -15.2,7.6c-5.71842,1.54874 -12.23519,2.77814 -19.55031,3.6882c0.01675,-0.08941 0.03352,-0.17881 0.05031,-0.2682c1.40667,-7.52667 2.46333,-14.81667 3.17,-21.87c0.7,-7.05333 0.17,-13.09667 -1.59,-18.13l33.17,10.54c1.85151,0.58838 3.69538,1.38055 5.5316,2.37651z M356.6,301.2l0,34.8c0,4.8 -1.2,9.93333 -3.6,15.4c-1.60966,3.66645 -3.81909,7.15297 -6.62829,10.45955c-0.33459,0.01363 -0.67182,0.02045 -1.01171,0.02045c-2.98,0 -6.15667,-0.53333 -9.53,-1.6c-8.13333,-2.58667 -13.96667,-6.47 -17.5,-11.65c-3.52667,-5.17333 -5.63333,-11.08667 -6.32,-17.74c-0.58502,-5.72404 -0.47676,-11.84777 0.32479,-18.37119c1.8925,-0.2478 3.7809,-0.4874 5.66521,-0.71881c7.6,-0.93333 14.86667,-2.13333 21.8,-3.6c6.93333,-1.46667 12.53333,-3.8 16.8,-7z M303.12737,382.37884c-3.09597,0.28078 -6.33842,0.42116 -9.72737,0.42116c-5.06667,0 -10.06667,-0.53333 -15,-1.6c-4.93333,-1.06667 -9.2,-2.8 -12.8,-5.2c-3.6,-2.4 -6.53333,-5.53333 -8.8,-9.4c-2.26667,-3.86667 -3.4,-8.6 -3.4,-14.2c0,-8.53333 1.93333,-15.26667 5.8,-20.2c3.86667,-4.93333 8.86667,-8.73333 15,-11.4c3.92731,-1.70753 8.18263,-3.11438 12.76596,-4.22055c-0.65483,6.42723 -1.07682,12.81741 -1.26596,19.17055c-0.25333,8.73333 0.85333,16.92 3.32,24.56c2.47333,7.64 6.66333,14.49667 12.57,20.57c0.49393,0.50844 1.00639,1.00805 1.53737,1.49884z',
|
||||
'a1.unite(a2);');
|
||||
compareBoolean(a1.subtract(a2),
|
||||
'M313,196.4c-10.54499,0 -20.63894,1.01484 -30.28184,3.04453c0.03727,0.01179 0.07455,0.02362 0.11184,0.03547l101.4,32.22c1.22652,0.38918 2.40407,0.75018 3.53265,1.08298c-1.03676,-3.21178 -2.35764,-6.13944 -3.96265,-8.78298c-4.53333,-7.46667 -10.53333,-13.26667 -18,-17.4c-7.46667,-4.13333 -15.8,-6.86667 -25,-8.2c-9.2,-1.33333 -18.46667,-2 -27.8,-2z M233.72204,265.6l25.67796,0c0.8,-15.2 6,-25.53333 15.6,-31c0.88297,-0.5028 1.78624,-0.98248 2.70981,-1.43904c-3.67741,-1.00731 -7.07735,-1.51096 -10.19981,-1.51096c-2.14,0 -4.15333,0.23667 -6.04,0.71c-5.16667,1.29333 -9.56,3.67333 -13.18,7.14c-3.62,3.46667 -6.64,7.68667 -9.06,12.66c-2.15491,4.43482 -3.99089,8.91482 -5.50796,13.44z M356.9816,259.33651c0.01227,0.4814 0.0184,0.96924 0.0184,1.46349c0,6.4 -1.86667,11.26667 -5.6,14.6c-3.73333,3.33333 -8.8,5.86667 -15.2,7.6c-5.71842,1.54874 -12.23519,2.77814 -19.55031,3.6882c-1.39405,7.43971 -2.68394,14.98031 -3.86969,22.6218c-0.16668,1.08014 -0.31508,2.14974 -0.44521,3.20881c1.8925,-0.2478 3.7809,-0.4874 5.66521,-0.71881c7.6,-0.93333 14.86667,-2.13333 21.8,-3.6c6.93333,-1.46667 12.53333,-3.8 16.8,-7l0,34.8c0,4.8 -1.2,9.93333 -3.6,15.4c-1.60966,3.66645 -3.81909,7.15297 -6.62829,10.45955c1.38484,-0.05642 2.72427,-0.22961 4.01829,-0.51955c4.37333,-0.99333 8.25,-2.84 11.63,-5.54c3.37333,-2.70667 6.31667,-6.25 8.83,-10.63c2.50667,-4.38 4.52667,-8.98333 6.06,-13.81c3.39333,-10.67333 4.84,-20.28667 4.34,-28.84c-0.5,-8.55333 -2.20667,-15.95 -5.12,-22.19c-2.91333,-6.24667 -6.61333,-11.34 -11.1,-15.28c-2.66627,-2.34489 -5.34907,-4.24939 -8.0484,-5.71349z M290.39682,290.6136c-0.99354,0.19006 -1.99248,0.38553 -2.99682,0.5864c-8.8,1.6 -17.4,3.6 -25.8,6c-8.4,2.4 -15.86667,5.93333 -22.4,10.6c-2.02434,1.44596 -3.92707,3.02632 -5.70819,4.74109c4.07526,6.64466 11.21799,11.89096 21.42819,15.73891l-10.29,32.4c-11.05679,-4.02232 -19.96023,-9.25062 -26.71034,-15.6849c-0.34644,3.08353 -0.51966,6.35183 -0.51966,9.8049c0,10.4 1.8,19.26667 5.4,26.6c3.6,7.33333 8.53333,13.33333 14.8,18c6.26667,4.66667 13.53333,8 21.8,10c8.26667,2 17.06667,3 26.4,3c14.4,0 27.8,-2.46667 40.2,-7.4c4.64254,-1.84703 9.07016,-4.13328 13.28283,-6.85874c-3.85696,-0.55211 -7.87791,-1.49253 -12.06283,-2.82126c-10.25015,-3.25586 -18.28103,-7.56958 -24.09263,-12.94116c-3.09597,0.28078 -6.33842,0.42116 -9.72737,0.42116c-5.06667,0 -10.06667,-0.53333 -15,-1.6c-4.93333,-1.06667 -9.2,-2.8 -12.8,-5.2c-3.6,-2.4 -6.53333,-5.53333 -8.8,-9.4c-2.26667,-3.86667 -3.4,-8.6 -3.4,-14.2c0,-8.53333 1.93333,-15.26667 5.8,-20.2c3.86667,-4.93333 8.86667,-8.73333 15,-11.4c3.92731,-1.70753 8.18263,-3.11438 12.76596,-4.22055c0.24533,-2.40795 0.52335,-4.8211 0.83404,-7.23945c0.72148,-6.52089 1.58709,-12.76302 2.59682,-18.7264z M361.06967,396.73025c1.27956,3.35579 3.05634,6.11238 5.33033,8.26975c5.2,4.93333 12.2,7.4 21,7.4c10.4,0 18.53333,-1.73333 24.4,-5.2l0,-26.4c-4,1.33333 -7.46667,2 -10.4,2c-5.33333,0 -8.46667,-1.86667 -9.4,-5.6c-0.29733,-1.18932 -0.5473,-2.59514 -0.74991,-4.21747c-4.2683,6.74372 -9.40499,12.27288 -15.41009,16.58747c-4.48973,3.22582 -9.41317,5.61256 -14.77033,7.16025z',
|
||||
'a1.subtract(a2);');
|
||||
compareBoolean(a1.intersect(a2),
|
||||
'M282.71816,199.44453c-0.84283,0.1774 -1.68222,0.36256 -2.51816,0.55547c-10.4,2.4 -19.6,6.33333 -27.6,11.8c-8,5.46667 -14.4,12.6 -19.2,21.4c-4.8,8.8 -7.46667,19.6 -8,32.4l8.32204,0c1.51707,-4.52518 3.35305,-9.00518 5.50796,-13.44c2.42,-4.97333 5.44,-9.19333 9.06,-12.66c3.62,-3.46667 8.01333,-5.84667 13.18,-7.14c1.88667,-0.47333 3.9,-0.71 6.04,-0.71c3.12246,0 6.5224,0.50365 10.19981,1.51096c9.11791,-4.50731 20.21464,-6.76096 33.29019,-6.76096c5.33333,0 10.73333,0.4 16.2,1.2c5.46667,0.8 10.4,2.4 14.8,4.8c4.4,2.4 8,5.86667 10.8,10.4c2.61465,4.23325 4.00852,9.74542 4.1816,16.53651c2.69933,1.4641 5.38213,3.3686 8.0484,5.71349c4.48667,3.94 8.18667,9.03333 11.1,15.28c2.91333,6.24 4.62,13.63667 5.12,22.19c0.5,8.55333 -0.94667,18.16667 -4.34,28.84c-1.53333,4.82667 -3.55333,9.43 -6.06,13.81c-2.51333,4.38 -5.45667,7.92333 -8.83,10.63c-3.38,2.7 -7.25667,4.54667 -11.63,5.54c-1.29402,0.28995 -2.63345,0.46313 -4.01829,0.51955c-1.37931,1.62353 -2.90321,3.20368 -4.57171,4.74045c-5.06667,4.66667 -11.6,8.53333 -19.6,11.6c-5.57932,2.13874 -11.93686,3.53169 -19.07263,4.17884c5.8116,5.37159 13.84248,9.68531 24.09263,12.94116c4.18492,1.32873 8.20587,2.26915 12.06283,2.82126c7.03917,-4.55411 13.47822,-10.33452 19.31717,-17.34126c0,6.30217 0.82322,11.61226 2.46967,15.93025c5.35715,-1.54768 10.2806,-3.93443 14.77033,-7.16025c6.0051,-4.31459 11.14179,-9.84374 15.41009,-16.58747c-0.43339,-3.47023 -0.65009,-7.93108 -0.65009,-13.38253l0,-106.4c0,-7.75146 -0.94578,-14.55713 -2.83735,-20.41702c-1.12858,-0.3328 -2.30613,-0.69379 -3.53265,-1.08298l-101.4,-32.22c-0.0373,-0.01185 -0.07458,-0.02368 -0.11184,-0.03547z M316.64969,286.6882c-0.87189,0.10847 -1.75512,0.2124 -2.64969,0.3118c-7.49609,0.8329 -15.36381,2.03743 -23.60318,3.6136c-1.00974,5.96338 -1.87535,12.20551 -2.59682,18.7264c-0.3107,2.41835 -0.58871,4.8315 -0.83404,7.23945c2.57452,-0.62135 5.25253,-1.14784 8.03404,-1.57945c5.81597,-0.90248 11.59423,-1.72954 17.33479,-2.48119c0.13013,-1.05907 0.27853,-2.12867 0.44521,-3.20881c1.18575,-7.64149 2.47565,-15.18209 3.86969,-22.6218z M233.49181,312.54109c-3.96726,3.81947 -7.3312,8.30577 -10.09181,13.45891c-2.82282,5.26926 -4.6496,11.60096 -5.48034,18.9951c6.75011,6.43428 15.65356,11.66258 26.71034,15.6849l10.29,-32.4c-10.2102,-3.84795 -17.35294,-9.09425 -21.42819,-15.73891z',
|
||||
'a1.intersect(a2);');
|
||||
compareBoolean(function() { return a1.unite(a2); },
|
||||
'M313,196.4c-10.54499,0 -20.63894,1.01484 -30.28184,3.04453c-7.2566,-2.29635 -13.91932,-3.44453 -19.98816,-3.44453c-3.45333,0 -6.71667,0.37333 -9.79,1.12c-8.48667,2.06 -15.83,6.02333 -22.03,11.89c-6.2,5.86667 -11.33,12.98 -15.39,21.34c-4.05333,8.36667 -7.49333,16.99667 -10.32,25.89c-3.47333,10.92667 -5.64,21.71 -6.5,32.35c-0.86,10.64 0.10333,20.6 2.89,29.88c2.78667,9.28 7.64667,17.54 14.58,24.78c0.56619,0.59124 1.14941,1.17293 1.74966,1.7451c-0.34644,3.08353 -0.51966,6.35183 -0.51966,9.8049c0,10.4 1.8,19.26667 5.4,26.6c3.6,7.33333 8.53333,13.33333 14.8,18c6.26667,4.66667 13.53333,8 21.8,10c8.26667,2 17.06667,3 26.4,3c14.4,0 27.8,-2.46667 40.2,-7.4c4.64254,-1.84703 9.07016,-4.13328 13.28283,-6.85874c2.74193,0.39249 5.40098,0.58874 7.97717,0.58874c2.38667,0 4.7,-0.17 6.94,-0.51c2.36408,-0.35305 4.65397,-0.84964 6.86967,-1.48975c1.27956,3.35579 3.05634,6.11238 5.33033,8.26975c5.2,4.93333 12.2,7.4 21,7.4c10.4,0 18.53333,-1.73333 24.4,-5.2l0,-26.4c-4,1.33333 -7.46667,2 -10.4,2c-5.33333,0 -8.46667,-1.86667 -9.4,-5.6c-0.29733,-1.18932 -0.5473,-2.59514 -0.74991,-4.21747c0.24278,-0.38358 0.48275,-0.77109 0.71991,-1.16253c4.41333,-7.27333 8.03,-15.35667 10.85,-24.25c4.36,-13.72667 6.06667,-27.24667 5.12,-40.56c-0.94667,-13.30667 -5.34333,-26.10333 -13.19,-38.39c5.28,1.67333 10.02333,2.51 14.23,2.51c4.29333,0 8.02667,-0.87333 11.2,-2.62c6.27333,-3.46 10.74333,-9.38333 13.41,-17.77c3.14667,-9.91333 3.95667,-18.19 2.43,-24.83l-25.16,-8c0.06,4.22 -0.35333,7.72667 -1.24,10.52c-1.54667,4.85333 -4.10333,7.28 -7.67,7.28c-0.17333,0 -0.34667,-0.00667 -0.52,-0.02c-3.22245,-0.2014 -7.77824,-1.17041 -13.66735,-2.90702c-1.03676,-3.21178 -2.35764,-6.13944 -3.96265,-8.78298c-4.53333,-7.46667 -10.53333,-13.26667 -18,-17.4c-7.46667,-4.13333 -15.8,-6.86667 -25,-8.2c-9.2,-1.33333 -18.46667,-2 -27.8,-2z M233.72204,265.6l25.67796,0c0.8,-15.2 6,-25.53333 15.6,-31c0.88297,-0.5028 1.78624,-0.98248 2.70981,-1.43904c0.71944,0.19707 1.4495,0.41341 2.19019,0.64904c6.1,1.93333 10.17333,5.18333 12.22,9.75c2.04667,4.57333 2.92667,10.17 2.64,16.79c-0.28667,6.62667 -1.25667,14.08333 -2.91,22.37c-0.51367,2.57457 -0.99806,5.20577 -1.45318,7.8936c-0.99354,0.19006 -1.99248,0.38553 -2.99682,0.5864c-8.8,1.6 -17.4,3.6 -25.8,6c-8.4,2.4 -15.86667,5.93333 -22.4,10.6c-2.02434,1.44596 -3.92707,3.02632 -5.70819,4.74109c-1.60844,-2.62254 -2.73904,-5.4629 -3.39181,-8.52109c-2.3,-10.8 -1.27,-23.06333 3.09,-36.79c0.17276,-0.54398 0.35011,-1.08732 0.53204,-1.63z M356.9816,259.33651c0.01227,0.4814 0.0184,0.96924 0.0184,1.46349c0,6.4 -1.86667,11.26667 -5.6,14.6c-3.73333,3.33333 -8.8,5.86667 -15.2,7.6c-5.71842,1.54874 -12.23519,2.77814 -19.55031,3.6882c0.01675,-0.08941 0.03352,-0.17881 0.05031,-0.2682c1.40667,-7.52667 2.46333,-14.81667 3.17,-21.87c0.7,-7.05333 0.17,-13.09667 -1.59,-18.13l33.17,10.54c1.85151,0.58838 3.69538,1.38055 5.5316,2.37651z M356.6,301.2l0,34.8c0,4.8 -1.2,9.93333 -3.6,15.4c-1.60966,3.66645 -3.81909,7.15297 -6.62829,10.45955c-0.33459,0.01363 -0.67182,0.02045 -1.01171,0.02045c-2.98,0 -6.15667,-0.53333 -9.53,-1.6c-8.13333,-2.58667 -13.96667,-6.47 -17.5,-11.65c-3.52667,-5.17333 -5.63333,-11.08667 -6.32,-17.74c-0.58502,-5.72404 -0.47676,-11.84777 0.32479,-18.37119c1.8925,-0.2478 3.7809,-0.4874 5.66521,-0.71881c7.6,-0.93333 14.86667,-2.13333 21.8,-3.6c6.93333,-1.46667 12.53333,-3.8 16.8,-7z M303.12737,382.37884c-3.09597,0.28078 -6.33842,0.42116 -9.72737,0.42116c-5.06667,0 -10.06667,-0.53333 -15,-1.6c-4.93333,-1.06667 -9.2,-2.8 -12.8,-5.2c-3.6,-2.4 -6.53333,-5.53333 -8.8,-9.4c-2.26667,-3.86667 -3.4,-8.6 -3.4,-14.2c0,-8.53333 1.93333,-15.26667 5.8,-20.2c3.86667,-4.93333 8.86667,-8.73333 15,-11.4c3.92731,-1.70753 8.18263,-3.11438 12.76596,-4.22055c-0.65483,6.42723 -1.07682,12.81741 -1.26596,19.17055c-0.25333,8.73333 0.85333,16.92 3.32,24.56c2.47333,7.64 6.66333,14.49667 12.57,20.57c0.49393,0.50844 1.00639,1.00805 1.53737,1.49884z');
|
||||
compareBoolean(function() { return a1.subtract(a2); },
|
||||
'M313,196.4c-10.54499,0 -20.63894,1.01484 -30.28184,3.04453c0.03727,0.01179 0.07455,0.02362 0.11184,0.03547l101.4,32.22c1.22652,0.38918 2.40407,0.75018 3.53265,1.08298c-1.03676,-3.21178 -2.35764,-6.13944 -3.96265,-8.78298c-4.53333,-7.46667 -10.53333,-13.26667 -18,-17.4c-7.46667,-4.13333 -15.8,-6.86667 -25,-8.2c-9.2,-1.33333 -18.46667,-2 -27.8,-2z M233.72204,265.6l25.67796,0c0.8,-15.2 6,-25.53333 15.6,-31c0.88297,-0.5028 1.78624,-0.98248 2.70981,-1.43904c-3.67741,-1.00731 -7.07735,-1.51096 -10.19981,-1.51096c-2.14,0 -4.15333,0.23667 -6.04,0.71c-5.16667,1.29333 -9.56,3.67333 -13.18,7.14c-3.62,3.46667 -6.64,7.68667 -9.06,12.66c-2.15491,4.43482 -3.99089,8.91482 -5.50796,13.44z M356.9816,259.33651c0.01227,0.4814 0.0184,0.96924 0.0184,1.46349c0,6.4 -1.86667,11.26667 -5.6,14.6c-3.73333,3.33333 -8.8,5.86667 -15.2,7.6c-5.71842,1.54874 -12.23519,2.77814 -19.55031,3.6882c-1.39405,7.43971 -2.68394,14.98031 -3.86969,22.6218c-0.16668,1.08014 -0.31508,2.14974 -0.44521,3.20881c1.8925,-0.2478 3.7809,-0.4874 5.66521,-0.71881c7.6,-0.93333 14.86667,-2.13333 21.8,-3.6c6.93333,-1.46667 12.53333,-3.8 16.8,-7l0,34.8c0,4.8 -1.2,9.93333 -3.6,15.4c-1.60966,3.66645 -3.81909,7.15297 -6.62829,10.45955c1.38484,-0.05642 2.72427,-0.22961 4.01829,-0.51955c4.37333,-0.99333 8.25,-2.84 11.63,-5.54c3.37333,-2.70667 6.31667,-6.25 8.83,-10.63c2.50667,-4.38 4.52667,-8.98333 6.06,-13.81c3.39333,-10.67333 4.84,-20.28667 4.34,-28.84c-0.5,-8.55333 -2.20667,-15.95 -5.12,-22.19c-2.91333,-6.24667 -6.61333,-11.34 -11.1,-15.28c-2.66627,-2.34489 -5.34907,-4.24939 -8.0484,-5.71349z M290.39682,290.6136c-0.99354,0.19006 -1.99248,0.38553 -2.99682,0.5864c-8.8,1.6 -17.4,3.6 -25.8,6c-8.4,2.4 -15.86667,5.93333 -22.4,10.6c-2.02434,1.44596 -3.92707,3.02632 -5.70819,4.74109c4.07526,6.64466 11.21799,11.89096 21.42819,15.73891l-10.29,32.4c-11.05679,-4.02232 -19.96023,-9.25062 -26.71034,-15.6849c-0.34644,3.08353 -0.51966,6.35183 -0.51966,9.8049c0,10.4 1.8,19.26667 5.4,26.6c3.6,7.33333 8.53333,13.33333 14.8,18c6.26667,4.66667 13.53333,8 21.8,10c8.26667,2 17.06667,3 26.4,3c14.4,0 27.8,-2.46667 40.2,-7.4c4.64254,-1.84703 9.07016,-4.13328 13.28283,-6.85874c-3.85696,-0.55211 -7.87791,-1.49253 -12.06283,-2.82126c-10.25015,-3.25586 -18.28103,-7.56958 -24.09263,-12.94116c-3.09597,0.28078 -6.33842,0.42116 -9.72737,0.42116c-5.06667,0 -10.06667,-0.53333 -15,-1.6c-4.93333,-1.06667 -9.2,-2.8 -12.8,-5.2c-3.6,-2.4 -6.53333,-5.53333 -8.8,-9.4c-2.26667,-3.86667 -3.4,-8.6 -3.4,-14.2c0,-8.53333 1.93333,-15.26667 5.8,-20.2c3.86667,-4.93333 8.86667,-8.73333 15,-11.4c3.92731,-1.70753 8.18263,-3.11438 12.76596,-4.22055c0.24533,-2.40795 0.52335,-4.8211 0.83404,-7.23945c0.72148,-6.52089 1.58709,-12.76302 2.59682,-18.7264z M361.06967,396.73025c1.27956,3.35579 3.05634,6.11238 5.33033,8.26975c5.2,4.93333 12.2,7.4 21,7.4c10.4,0 18.53333,-1.73333 24.4,-5.2l0,-26.4c-4,1.33333 -7.46667,2 -10.4,2c-5.33333,0 -8.46667,-1.86667 -9.4,-5.6c-0.29733,-1.18932 -0.5473,-2.59514 -0.74991,-4.21747c-4.2683,6.74372 -9.40499,12.27288 -15.41009,16.58747c-4.48973,3.22582 -9.41317,5.61256 -14.77033,7.16025z');
|
||||
compareBoolean(function() { return a1.intersect(a2); },
|
||||
'M282.71816,199.44453c-0.84283,0.1774 -1.68222,0.36256 -2.51816,0.55547c-10.4,2.4 -19.6,6.33333 -27.6,11.8c-8,5.46667 -14.4,12.6 -19.2,21.4c-4.8,8.8 -7.46667,19.6 -8,32.4l8.32204,0c1.51707,-4.52518 3.35305,-9.00518 5.50796,-13.44c2.42,-4.97333 5.44,-9.19333 9.06,-12.66c3.62,-3.46667 8.01333,-5.84667 13.18,-7.14c1.88667,-0.47333 3.9,-0.71 6.04,-0.71c3.12246,0 6.5224,0.50365 10.19981,1.51096c9.11791,-4.50731 20.21464,-6.76096 33.29019,-6.76096c5.33333,0 10.73333,0.4 16.2,1.2c5.46667,0.8 10.4,2.4 14.8,4.8c4.4,2.4 8,5.86667 10.8,10.4c2.61465,4.23325 4.00852,9.74542 4.1816,16.53651c2.69933,1.4641 5.38213,3.3686 8.0484,5.71349c4.48667,3.94 8.18667,9.03333 11.1,15.28c2.91333,6.24 4.62,13.63667 5.12,22.19c0.5,8.55333 -0.94667,18.16667 -4.34,28.84c-1.53333,4.82667 -3.55333,9.43 -6.06,13.81c-2.51333,4.38 -5.45667,7.92333 -8.83,10.63c-3.38,2.7 -7.25667,4.54667 -11.63,5.54c-1.29402,0.28995 -2.63345,0.46313 -4.01829,0.51955c-1.37931,1.62353 -2.90321,3.20368 -4.57171,4.74045c-5.06667,4.66667 -11.6,8.53333 -19.6,11.6c-5.57932,2.13874 -11.93686,3.53169 -19.07263,4.17884c5.8116,5.37159 13.84248,9.68531 24.09263,12.94116c4.18492,1.32873 8.20587,2.26915 12.06283,2.82126c7.03917,-4.55411 13.47822,-10.33452 19.31717,-17.34126c0,6.30217 0.82322,11.61226 2.46967,15.93025c5.35715,-1.54768 10.2806,-3.93443 14.77033,-7.16025c6.0051,-4.31459 11.14179,-9.84374 15.41009,-16.58747c-0.43339,-3.47023 -0.65009,-7.93108 -0.65009,-13.38253l0,-106.4c0,-7.75146 -0.94578,-14.55713 -2.83735,-20.41702c-1.12858,-0.3328 -2.30613,-0.69379 -3.53265,-1.08298l-101.4,-32.22c-0.0373,-0.01185 -0.07458,-0.02368 -0.11184,-0.03547z M316.64969,286.6882c-0.87189,0.10847 -1.75512,0.2124 -2.64969,0.3118c-7.49609,0.8329 -15.36381,2.03743 -23.60318,3.6136c-1.00974,5.96338 -1.87535,12.20551 -2.59682,18.7264c-0.3107,2.41835 -0.58871,4.8315 -0.83404,7.23945c2.57452,-0.62135 5.25253,-1.14784 8.03404,-1.57945c5.81597,-0.90248 11.59423,-1.72954 17.33479,-2.48119c0.13013,-1.05907 0.27853,-2.12867 0.44521,-3.20881c1.18575,-7.64149 2.47565,-15.18209 3.86969,-22.6218z M233.49181,312.54109c-3.96726,3.81947 -7.3312,8.30577 -10.09181,13.45891c-2.82282,5.26926 -4.6496,11.60096 -5.48034,18.9951c6.75011,6.43428 15.65356,11.66258 26.71034,15.6849l10.29,-32.4c-10.2102,-3.84795 -17.35294,-9.09425 -21.42819,-15.73891z');
|
||||
|
||||
var m = createPath('M280.2,194.4Q236.6,194.4,213.4,229.6L212.6,229.6L212.6,199.2L180.6,199.2L180.6,406L214.6,406L214.6,277.2Q214.6,271.2,217.6,262.2Q220.6,253.2,227.2,244.8Q233.8,236.4,244.4,230.4Q255,224.4,269.8,224.4Q281.4,224.4,288.8,227.8Q296.2,231.2,300.6,237.4Q305,243.6,306.8,252Q308.6,260.4,308.6,270.4L308.6,406L342.6,406L342.6,277.2Q342.6,253.2,357,238.8Q371.4,224.4,396.6,224.4Q409,224.4,416.8,228Q424.6,231.6,429,237.8Q433.4,244,435,252.4Q436.6,260.8,436.6,270.4L436.6,406L470.6,406L470.6,254.4Q470.6,238.4,465.6,227Q460.6,215.6,451.6,208.4Q442.6,201.2,430,197.8Q417.4,194.4,401.8,194.4Q381.4,194.4,364.4,203.6Q347.4,212.8,337,229.6Q330.6,210.4,315,202.4Q299.4,194.4,280.2,194.4Z').reduce();
|
||||
var s = createPath('M374.87,186.92Q363.85,186.92,351.66,188.55Q338.18,190.36,324.95,195.56Q311.73,200.76,301.75,209.16Q291.78,217.56,286.33,229.59Q280.88,241.62,282.95,257.08Q285.61,276.91,297,286.68Q308.4,296.45,324.09,300.61Q339.78,304.76,357.68,305.79Q375.58,306.82,391,309Q406.43,311.17,417.24,316.58Q428.05,321.99,429.81,335.07Q431.08,344.59,427.15,351.37Q423.21,358.15,416.3,362.31Q409.39,366.46,400.83,368.82Q392.27,371.18,384.34,372.24Q377.44,373.17,370.68,373.17Q367.35,373.17,364.05,372.94Q354.07,372.26,345.73,368.74Q337.39,365.21,331.6,358.12Q325.8,351.03,323.92,339.98L290.22,344.49Q293.56,363.42,302.48,375.74Q311.4,388.07,324.38,394.6Q337.36,401.13,353.3,402.63Q359.61,403.22,366.09,403.22Q375.99,403.22,386.29,401.84Q401.75,399.77,417.01,394.7Q432.27,389.63,443.75,380.42Q455.23,371.22,461.32,357.89Q467.4,344.57,464.9,325.93Q462.94,311.26,455.86,302.12Q448.79,292.98,438.59,287.69Q428.4,282.39,415.78,280.05Q403.15,277.7,390.09,276.63Q377.83,275.45,365.59,274.46Q353.35,273.48,343.33,270.99Q333.31,268.5,326.4,263.57Q319.48,258.65,318.31,249.92Q317.25,242,320.55,236.51Q323.85,231.02,329.8,227.2Q335.74,223.38,343.31,221.15Q350.88,218.92,358.42,217.92Q363.55,217.23,368.69,217.23Q371.9,217.23,375.11,217.5Q383.48,218.19,390.75,221.25Q398.02,224.31,403.25,230.27Q408.49,236.23,410.61,246.03L444.31,241.52Q440.63,223.04,432.21,211.46Q423.8,199.87,411.52,194.05Q399.24,188.23,384.17,187.22Q379.63,186.92,374.87,186.92Z').reduce();
|
||||
compareBoolean(m.unite(s),
|
||||
'M280.2,194.4c-29.06667,0 -51.33333,11.73333 -66.8,35.2l-0.8,0l0,-30.4l-32,0l0,206.8l34,0l0,-128.8c0,-4 1,-9 3,-15c2,-6 5.2,-11.8 9.6,-17.4c4.4,-5.6 10.13333,-10.4 17.2,-14.4c7.06667,-4 15.53333,-6 25.4,-6c7.05125,0 12.93858,0.94223 17.66197,2.82669c-0.39231,0.77574 -0.76963,1.56351 -1.13197,2.36331c-3.63333,8.02 -4.76,17.18333 -3.38,27.49c1.77333,13.22 6.45667,23.08667 14.05,29.6c3.55396,3.04581 7.42063,5.68269 11.6,7.91066l0,47.43958l-18.38,2.45976c2.22667,12.62 6.31333,23.03667 12.26,31.25c1.90161,2.62857 3.94161,5.05945 6.12,7.29262l0,22.96738l34,0l0,-5.01536c3.448,0.75011 7.01467,1.29856 10.7,1.64536c4.20667,0.39333 8.47,0.59 12.79,0.59c6.6,0 13.33333,-0.46 20.2,-1.38c10.30667,-1.38 20.54667,-3.76 30.72,-7.14c7.15288,-2.37648 13.68288,-5.43517 19.59,-9.17606l0,20.47606l34,0l0,-151.6c0,-10.66667 -1.66667,-19.8 -5,-27.4c-3.33333,-7.6 -8,-13.8 -14,-18.6c-6,-4.8 -13.2,-8.33333 -21.6,-10.6c-5.21033,-1.40596 -10.8054,-2.37588 -16.78522,-2.90976c-0.55865,-0.28944 -1.12357,-0.56953 -1.69478,-0.84024c-8.18667,-3.88 -17.30333,-6.15667 -27.35,-6.83c-3.02667,-0.2 -6.12667,-0.3 -9.3,-0.3c-7.34667,0 -15.08333,0.54333 -23.21,1.63c-8.98667,1.20667 -17.89,3.54333 -26.71,7.01c-4.27626,1.68204 -8.29826,3.61519 -12.066,5.79946c-9.85075,-4.63964 -20.74541,-6.95946 -32.684,-6.95946z M342.6,367.24173l0,-62.92768c4.88868,0.68679 9.91535,1.17877 15.08,1.47596c11.93333,0.68667 23.04,1.75667 33.32,3.21c10.28667,1.44667 19.03333,3.97333 26.24,7.58c7.20667,3.60667 11.39667,9.77 12.57,18.49c0.84667,6.34667 -0.04,11.78 -2.66,16.3c-2.62667,4.52 -6.24333,8.16667 -10.85,10.94c-4.60667,2.76667 -9.76333,4.93667 -15.47,6.51c-5.70667,1.57333 -11.20333,2.71333 -16.49,3.42c-4.6,0.62 -9.15333,0.93 -13.66,0.93c-2.22,0 -4.43,-0.07667 -6.63,-0.23c-6.65333,-0.45333 -12.76,-1.85333 -18.32,-4.2c-1.07512,-0.45505 -2.11845,-0.95448 -3.13,-1.49827z M342.86436,270.87254c1.1245,-13.08243 5.83638,-23.77328 14.13564,-32.07254c9.59972,-9.59972 22.79924,-14.39972 39.59854,-14.4c2.43969,1.64031 4.65684,3.59698 6.65146,5.87c3.49333,3.97333 5.94667,9.22667 7.36,15.76l21.48194,-2.87488c1.30195,2.8203 2.27131,5.90193 2.90806,9.24488c1.06667,5.6 1.6,11.6 1.6,18l0,16.29433c-6.27884,-3.02014 -13.21884,-5.23492 -20.82,-6.64433c-8.42,-1.56667 -16.98333,-2.70667 -25.69,-3.42c-8.17333,-0.78667 -16.34,-1.51 -24.5,-2.17c-8.16,-0.65333 -15.58,-1.81 -22.26,-3.47c-0.15578,-0.03871 -0.31099,-0.07786 -0.46564,-0.11746z M342.95383,221.25607c-2.13807,2.6046 -4.12268,5.38591 -5.95383,8.34393c-0.61219,-1.83657 -1.28751,-3.59627 -2.02597,-5.27912c2.48698,-1.19031 5.14691,-2.21192 7.9798,-3.0648z',
|
||||
'm.unite(s);');
|
||||
compareBoolean(m.subtract(s),
|
||||
'M280.2,194.4c-29.06667,0 -51.33333,11.73333 -66.8,35.2l-0.8,0l0,-30.4l-32,0l0,206.8l34,0l0,-128.8c0,-4 1,-9 3,-15c2,-6 5.2,-11.8 9.6,-17.4c4.4,-5.6 10.13333,-10.4 17.2,-14.4c7.06667,-4 15.53333,-6 25.4,-6c7.05125,0 12.93858,0.94223 17.66197,2.82669c3.54153,-7.00293 8.30421,-13.02516 14.28803,-18.06669c3.42512,-2.88286 7.13645,-5.48304 11.134,-7.80054c-9.85075,-4.63964 -20.74541,-6.95946 -32.684,-6.95946z M308.6,294.59066l0,47.43958l15.32,-2.05024c1.25333,7.36667 3.81333,13.41333 7.68,18.14c3.11361,3.81269 6.78027,6.85327 11,9.12173l0,-62.92768c-6.407,-0.90009 -12.577,-2.13477 -18.51,-3.70404c-5.56863,-1.47645 -10.73196,-3.4829 -15.49,-6.01934z M308.6,383.03262l0,22.96738l34,0l0,-5.01536c-6.49431,-1.41283 -12.56765,-3.54104 -18.22,-6.38464c-5.88619,-2.96123 -11.14619,-6.81703 -15.78,-11.56738z M342.86436,270.87254c1.1245,-13.08243 5.83638,-23.77328 14.13564,-32.07254c9.59972,-9.59972 22.79924,-14.39972 39.59854,-14.4c-1.82499,-1.22702 -3.7745,-2.27702 -5.84854,-3.15c-4.84667,-2.04 -10.06,-3.29 -15.64,-3.75c-2.14,-0.18 -4.28,-0.27 -6.42,-0.27c-3.42667,0 -6.85,0.23 -10.27,0.69c-5.02667,0.66667 -10.06333,1.74333 -15.11,3.23c-0.11902,0.03506 -0.23775,0.07042 -0.35617,0.10607c-2.13807,2.6046 -4.12268,5.38591 -5.95383,8.34393c-0.61219,-1.83657 -1.28751,-3.59627 -2.02597,-5.27912c-1.817,0.86965 -3.54168,1.82936 -5.17403,2.87912c-3.96667,2.54667 -7.05,5.65 -9.25,9.31c-2.2,3.66 -2.94667,8.13 -2.24,13.41c0.78,5.82 3.47667,10.37 8.09,13.65c4.49924,3.21002 9.98736,5.6442 16.46436,7.30254z M432.09194,243.15512c1.30195,2.8203 2.27131,5.90193 2.90806,9.24488c1.06667,5.6 1.6,11.6 1.6,18l0,16.29433c0.67088,0.3227 1.33421,0.65459 1.99,0.99567c6.8,3.52667 12.55667,8.33667 17.27,14.43c4.72,6.09333 7.73333,14.03 9.04,23.81c1.66667,12.42667 0.47333,23.08 -3.58,31.96c-4.06,8.88667 -9.91667,16.39667 -17.57,22.53c-2.27227,1.82296 -4.6556,3.52427 -7.15,5.10394l0,20.47606l34,0l0,-151.6c0,-10.66667 -1.66667,-19.8 -5,-27.4c-3.33333,-7.6 -8,-13.8 -14,-18.6c-6,-4.8 -13.2,-8.33333 -21.6,-10.6c-5.21033,-1.40596 -10.8054,-2.37588 -16.78522,-2.90976c7.44801,3.85895 13.77975,9.3822 18.99522,16.56976c5.61333,7.72 9.64667,17.74 12.1,30.06z',
|
||||
'm.subtract(s);');
|
||||
compareBoolean(m.intersect(s),
|
||||
'M287.46197,227.22669c0.4569,0.18229 0.90291,0.37339 1.33803,0.57331c4.93333,2.26667 8.86667,5.46667 11.8,9.6c2.93333,4.13333 5,9 6.2,14.6c1.2,5.6 1.8,11.73333 1.8,18.4l0,24.19066c4.75804,2.53645 9.92137,4.54289 15.49,6.01934c5.933,1.56928 12.103,2.80396 18.51,3.70404l0,-27.11404c0,-2.1679 0.08812,-4.27705 0.26436,-6.32746c-6.477,-1.65834 -11.96512,-4.09252 -16.46436,-7.30254c-4.61333,-3.28 -7.31,-7.83 -8.09,-13.65c-0.70667,-5.28 0.04,-9.75 2.24,-13.41c2.2,-3.66 5.28333,-6.76333 9.25,-9.31c1.63236,-1.04976 3.35703,-2.00947 5.17403,-2.87912c-4.40823,-10.04582 -11.06624,-17.35278 -19.97403,-21.92088c-0.6999,-0.35892 -1.40523,-0.70577 -2.116,-1.04054c-3.99755,2.3175 -7.70888,4.91767 -11.134,7.80054c-5.98382,5.04153 -10.7465,11.06376 -14.28803,18.06669z M308.6,342.03024l0,41.00238c4.63381,4.75035 9.89381,8.60614 15.78,11.56738c5.65235,2.8436 11.72569,4.97181 18.22,6.38464l0,-33.74291c-4.21973,-2.26846 -7.88639,-5.30904 -11,-9.12173c-3.86667,-4.72667 -6.42667,-10.77333 -7.68,-18.14z M396.59854,224.4c0.00049,0 0.00097,0 0.00146,0c8.26667,0 15,1.2 20.2,3.6c5.2,2.4 9.26667,5.66667 12.2,9.8c1.18226,1.66591 2.21291,3.45095 3.09194,5.35512l12.21806,-1.63512c-2.45333,-12.32 -6.48667,-22.34 -12.1,-30.06c-5.21547,-7.18756 -11.54722,-12.71081 -18.99522,-16.56976c-3.66074,-0.32683 -7.46566,-0.49024 -11.41478,-0.49024c-13.6,0 -26.06667,3.06667 -37.4,9.2c-8.3401,4.51347 -15.48882,10.39882 -21.44617,17.65607c0.11842,-0.03565 0.23714,-0.07101 0.35617,-0.10607c5.04667,-1.48667 10.08333,-2.56333 15.11,-3.23c3.42,-0.46 6.84333,-0.69 10.27,-0.69c2.14,0 4.28,0.09 6.42,0.27c5.58,0.46 10.79333,1.71 15.64,3.75c2.07404,0.87298 4.02355,1.92298 5.84854,3.15z M436.6,286.69433l0,98.82961c2.4944,-1.57967 4.87773,-3.28098 7.15,-5.10394c7.65333,-6.13333 13.51,-13.64333 17.57,-22.53c4.05333,-8.88 5.24667,-19.53333 3.58,-31.96c-1.30667,-9.78 -4.32,-17.71667 -9.04,-23.81c-4.71333,-6.09333 -10.47,-10.90333 -17.27,-14.43c-0.65579,-0.34109 -1.31912,-0.67298 -1.99,-0.99567z',
|
||||
'm.intersect(s);');
|
||||
compareBoolean(function() { return m.unite(s); },
|
||||
'M280.2,194.4c-29.06667,0 -51.33333,11.73333 -66.8,35.2l-0.8,0l0,-30.4l-32,0l0,206.8l34,0l0,-128.8c0,-4 1,-9 3,-15c2,-6 5.2,-11.8 9.6,-17.4c4.4,-5.6 10.13333,-10.4 17.2,-14.4c7.06667,-4 15.53333,-6 25.4,-6c7.05125,0 12.93858,0.94223 17.66197,2.82669c-0.39231,0.77574 -0.76963,1.56351 -1.13197,2.36331c-3.63333,8.02 -4.76,17.18333 -3.38,27.49c1.77333,13.22 6.45667,23.08667 14.05,29.6c3.55396,3.04581 7.42063,5.68269 11.6,7.91066l0,47.43958l-18.38,2.45976c2.22667,12.62 6.31333,23.03667 12.26,31.25c1.90161,2.62857 3.94161,5.05945 6.12,7.29262l0,22.96738l34,0l0,-5.01536c3.448,0.75011 7.01467,1.29856 10.7,1.64536c4.20667,0.39333 8.47,0.59 12.79,0.59c6.6,0 13.33333,-0.46 20.2,-1.38c10.30667,-1.38 20.54667,-3.76 30.72,-7.14c7.15288,-2.37648 13.68288,-5.43517 19.59,-9.17606l0,20.47606l34,0l0,-151.6c0,-10.66667 -1.66667,-19.8 -5,-27.4c-3.33333,-7.6 -8,-13.8 -14,-18.6c-6,-4.8 -13.2,-8.33333 -21.6,-10.6c-5.21033,-1.40596 -10.8054,-2.37588 -16.78522,-2.90976c-0.55865,-0.28944 -1.12357,-0.56953 -1.69478,-0.84024c-8.18667,-3.88 -17.30333,-6.15667 -27.35,-6.83c-3.02667,-0.2 -6.12667,-0.3 -9.3,-0.3c-7.34667,0 -15.08333,0.54333 -23.21,1.63c-8.98667,1.20667 -17.89,3.54333 -26.71,7.01c-4.27626,1.68204 -8.29826,3.61519 -12.066,5.79946c-9.85075,-4.63964 -20.74541,-6.95946 -32.684,-6.95946z M342.6,367.24173l0,-62.92768c4.88868,0.68679 9.91535,1.17877 15.08,1.47596c11.93333,0.68667 23.04,1.75667 33.32,3.21c10.28667,1.44667 19.03333,3.97333 26.24,7.58c7.20667,3.60667 11.39667,9.77 12.57,18.49c0.84667,6.34667 -0.04,11.78 -2.66,16.3c-2.62667,4.52 -6.24333,8.16667 -10.85,10.94c-4.60667,2.76667 -9.76333,4.93667 -15.47,6.51c-5.70667,1.57333 -11.20333,2.71333 -16.49,3.42c-4.6,0.62 -9.15333,0.93 -13.66,0.93c-2.22,0 -4.43,-0.07667 -6.63,-0.23c-6.65333,-0.45333 -12.76,-1.85333 -18.32,-4.2c-1.07512,-0.45505 -2.11845,-0.95448 -3.13,-1.49827z M342.86436,270.87254c1.1245,-13.08243 5.83638,-23.77328 14.13564,-32.07254c9.59972,-9.59972 22.79924,-14.39972 39.59854,-14.4c2.43969,1.64031 4.65684,3.59698 6.65146,5.87c3.49333,3.97333 5.94667,9.22667 7.36,15.76l21.48194,-2.87488c1.30195,2.8203 2.27131,5.90193 2.90806,9.24488c1.06667,5.6 1.6,11.6 1.6,18l0,16.29433c-6.27884,-3.02014 -13.21884,-5.23492 -20.82,-6.64433c-8.42,-1.56667 -16.98333,-2.70667 -25.69,-3.42c-8.17333,-0.78667 -16.34,-1.51 -24.5,-2.17c-8.16,-0.65333 -15.58,-1.81 -22.26,-3.47c-0.15578,-0.03871 -0.31099,-0.07786 -0.46564,-0.11746z M342.95383,221.25607c-2.13807,2.6046 -4.12268,5.38591 -5.95383,8.34393c-0.61219,-1.83657 -1.28751,-3.59627 -2.02597,-5.27912c2.48698,-1.19031 5.14691,-2.21192 7.9798,-3.0648z');
|
||||
compareBoolean(function() { return m.subtract(s); },
|
||||
'M280.2,194.4c-29.06667,0 -51.33333,11.73333 -66.8,35.2l-0.8,0l0,-30.4l-32,0l0,206.8l34,0l0,-128.8c0,-4 1,-9 3,-15c2,-6 5.2,-11.8 9.6,-17.4c4.4,-5.6 10.13333,-10.4 17.2,-14.4c7.06667,-4 15.53333,-6 25.4,-6c7.05125,0 12.93858,0.94223 17.66197,2.82669c3.54153,-7.00293 8.30421,-13.02516 14.28803,-18.06669c3.42512,-2.88286 7.13645,-5.48304 11.134,-7.80054c-9.85075,-4.63964 -20.74541,-6.95946 -32.684,-6.95946z M308.6,294.59066l0,47.43958l15.32,-2.05024c1.25333,7.36667 3.81333,13.41333 7.68,18.14c3.11361,3.81269 6.78027,6.85327 11,9.12173l0,-62.92768c-6.407,-0.90009 -12.577,-2.13477 -18.51,-3.70404c-5.56863,-1.47645 -10.73196,-3.4829 -15.49,-6.01934z M308.6,383.03262l0,22.96738l34,0l0,-5.01536c-6.49431,-1.41283 -12.56765,-3.54104 -18.22,-6.38464c-5.88619,-2.96123 -11.14619,-6.81703 -15.78,-11.56738z M342.86436,270.87254c1.1245,-13.08243 5.83638,-23.77328 14.13564,-32.07254c9.59972,-9.59972 22.79924,-14.39972 39.59854,-14.4c-1.82499,-1.22702 -3.7745,-2.27702 -5.84854,-3.15c-4.84667,-2.04 -10.06,-3.29 -15.64,-3.75c-2.14,-0.18 -4.28,-0.27 -6.42,-0.27c-3.42667,0 -6.85,0.23 -10.27,0.69c-5.02667,0.66667 -10.06333,1.74333 -15.11,3.23c-0.11902,0.03506 -0.23775,0.07042 -0.35617,0.10607c-2.13807,2.6046 -4.12268,5.38591 -5.95383,8.34393c-0.61219,-1.83657 -1.28751,-3.59627 -2.02597,-5.27912c-1.817,0.86965 -3.54168,1.82936 -5.17403,2.87912c-3.96667,2.54667 -7.05,5.65 -9.25,9.31c-2.2,3.66 -2.94667,8.13 -2.24,13.41c0.78,5.82 3.47667,10.37 8.09,13.65c4.49924,3.21002 9.98736,5.6442 16.46436,7.30254z M432.09194,243.15512c1.30195,2.8203 2.27131,5.90193 2.90806,9.24488c1.06667,5.6 1.6,11.6 1.6,18l0,16.29433c0.67088,0.3227 1.33421,0.65459 1.99,0.99567c6.8,3.52667 12.55667,8.33667 17.27,14.43c4.72,6.09333 7.73333,14.03 9.04,23.81c1.66667,12.42667 0.47333,23.08 -3.58,31.96c-4.06,8.88667 -9.91667,16.39667 -17.57,22.53c-2.27227,1.82296 -4.6556,3.52427 -7.15,5.10394l0,20.47606l34,0l0,-151.6c0,-10.66667 -1.66667,-19.8 -5,-27.4c-3.33333,-7.6 -8,-13.8 -14,-18.6c-6,-4.8 -13.2,-8.33333 -21.6,-10.6c-5.21033,-1.40596 -10.8054,-2.37588 -16.78522,-2.90976c7.44801,3.85895 13.77975,9.3822 18.99522,16.56976c5.61333,7.72 9.64667,17.74 12.1,30.06z');
|
||||
compareBoolean(function() { return m.intersect(s); },
|
||||
'M287.46197,227.22669c0.4569,0.18229 0.90291,0.37339 1.33803,0.57331c4.93333,2.26667 8.86667,5.46667 11.8,9.6c2.93333,4.13333 5,9 6.2,14.6c1.2,5.6 1.8,11.73333 1.8,18.4l0,24.19066c4.75804,2.53645 9.92137,4.54289 15.49,6.01934c5.933,1.56928 12.103,2.80396 18.51,3.70404l0,-27.11404c0,-2.1679 0.08812,-4.27705 0.26436,-6.32746c-6.477,-1.65834 -11.96512,-4.09252 -16.46436,-7.30254c-4.61333,-3.28 -7.31,-7.83 -8.09,-13.65c-0.70667,-5.28 0.04,-9.75 2.24,-13.41c2.2,-3.66 5.28333,-6.76333 9.25,-9.31c1.63236,-1.04976 3.35703,-2.00947 5.17403,-2.87912c-4.40823,-10.04582 -11.06624,-17.35278 -19.97403,-21.92088c-0.6999,-0.35892 -1.40523,-0.70577 -2.116,-1.04054c-3.99755,2.3175 -7.70888,4.91767 -11.134,7.80054c-5.98382,5.04153 -10.7465,11.06376 -14.28803,18.06669z M308.6,342.03024l0,41.00238c4.63381,4.75035 9.89381,8.60614 15.78,11.56738c5.65235,2.8436 11.72569,4.97181 18.22,6.38464l0,-33.74291c-4.21973,-2.26846 -7.88639,-5.30904 -11,-9.12173c-3.86667,-4.72667 -6.42667,-10.77333 -7.68,-18.14z M396.59854,224.4c0.00049,0 0.00097,0 0.00146,0c8.26667,0 15,1.2 20.2,3.6c5.2,2.4 9.26667,5.66667 12.2,9.8c1.18226,1.66591 2.21291,3.45095 3.09194,5.35512l12.21806,-1.63512c-2.45333,-12.32 -6.48667,-22.34 -12.1,-30.06c-5.21547,-7.18756 -11.54722,-12.71081 -18.99522,-16.56976c-3.66074,-0.32683 -7.46566,-0.49024 -11.41478,-0.49024c-13.6,0 -26.06667,3.06667 -37.4,9.2c-8.3401,4.51347 -15.48882,10.39882 -21.44617,17.65607c0.11842,-0.03565 0.23714,-0.07101 0.35617,-0.10607c5.04667,-1.48667 10.08333,-2.56333 15.11,-3.23c3.42,-0.46 6.84333,-0.69 10.27,-0.69c2.14,0 4.28,0.09 6.42,0.27c5.58,0.46 10.79333,1.71 15.64,3.75c2.07404,0.87298 4.02355,1.92298 5.84854,3.15z M436.6,286.69433l0,98.82961c2.4944,-1.57967 4.87773,-3.28098 7.15,-5.10394c7.65333,-6.13333 13.51,-13.64333 17.57,-22.53c4.05333,-8.88 5.24667,-19.53333 3.58,-31.96c-1.30667,-9.78 -4.32,-17.71667 -9.04,-23.81c-4.71333,-6.09333 -10.47,-10.90333 -17.27,-14.43c-0.65579,-0.34109 -1.31912,-0.67298 -1.99,-0.99567z');
|
||||
|
||||
var t = createPath('M283.8,165.2L283.8,227.2L248.6,227.2L248.6,257.2L283.8,257.2L283.8,388.8Q283.8,403.2,286.6,412Q289.4,420.8,295.2,425.6Q301,430.4,310.4,432.2Q319.8,434,333,434L359,434L359,404L343.4,404Q335.4,404,330.4,403.4Q325.4,402.8,322.6,400.8Q319.8,398.8,318.8,395.2Q317.8,391.6,317.8,385.6L317.8,257.2L359,257.2L359,227.2L317.8,227.2L317.8,165.2Z');
|
||||
var r = createPath('M192.38,277.21L176.71,307.39L258.34,349.8Q276.09,359.03,287.91,369.68Q299.73,380.33,305.26,393.11Q310.79,405.9,309.12,421.26Q307.45,436.62,298.04,454.72L329.99,471.32Q330.82,469.82,331.6,468.32Q343.27,445.86,341.07,425.7Q338.72,404.19,322.08,381.57L322.45,380.86L361.14,400.96L375.89,372.56L192.38,277.21Z');
|
||||
compareBoolean(t.unite(r),
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,67.51094l-91.42,-47.50094l-15.67,30.18l81.63,42.41c9.85867,5.12651 18.34534,10.58156 25.46,16.36515l0,22.63485c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c3.19226,2.64187 7.20242,4.60215 12.03049,5.88084c-1.88234,7.32825 -4.94584,15.07464 -9.19049,23.23916l31.95,16.6c0.55333,-1 1.09,-2 1.61,-3c6.19684,-11.92639 9.46051,-23.36639 9.79102,-34.32l17.60898,0l0,-30l-15.6,0c-3.10687,0 -5.87439,-0.06787 -8.30256,-0.20361c-3.16081,-7.31727 -7.49996,-14.72606 -13.01744,-22.22639l0.37,-0.71l38.69,20.1l14.75,-28.4l-58.09,-30.183l0,-85.177l41.2,0l0,-30l-41.2,0l0,-62z',
|
||||
't.unite(r);');
|
||||
compareBoolean(t.subtract(r),
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,67.51094l34,17.66607l0,-85.177l41.2,0l0,-30l-41.2,0l0,-62z M283.8,366.16515l0,22.63485c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c3.19226,2.64187 7.20242,4.60215 12.03049,5.88084c0.89964,-3.50246 1.52948,-6.9094 1.88951,-10.22084c1.11333,-10.24 -0.17333,-19.62333 -3.86,-28.15c-3.68667,-8.52 -9.47,-16.33 -17.35,-23.43c-1.31496,-1.1848 -2.68496,-2.35641 -4.11,-3.51485z M341.39102,434l17.60898,0l0,-30l-15.6,0c-3.10687,0 -5.87439,-0.06787 -8.30256,-0.20361c3.19425,7.39468 5.1851,14.69588 5.97256,21.90361c0.29845,2.73492 0.40546,5.50159 0.32102,8.3z',
|
||||
't.subtract(r);');
|
||||
compareBoolean(t.intersect(r),
|
||||
'M283.8,324.71094l0,41.45422c1.42504,1.15843 2.79504,2.33005 4.11,3.51485c7.88,7.1 13.66333,14.91 17.35,23.43c3.68667,8.52667 4.97333,17.91 3.86,28.15c-0.36003,3.31143 -0.98987,6.71838 -1.88951,10.22084c1.02,0.27014 2.0765,0.50986 3.16951,0.71916c6.26667,1.2 13.8,1.8 22.6,1.8l8.39102,0c0.08444,-2.79841 -0.02257,-5.56508 -0.32102,-8.3c-0.78746,-7.20773 -2.77831,-14.50893 -5.97256,-21.90361c-1.74009,-0.09727 -3.3059,-0.2294 -4.69744,-0.39639c-3.33333,-0.4 -5.93333,-1.26667 -7.8,-2.6c-1.86667,-1.33333 -3.13333,-3.2 -3.8,-5.6c-0.66667,-2.4 -1,-5.6 -1,-9.6l0,-43.223z',
|
||||
't.intersect(r);');
|
||||
compareBoolean(function() { return t.unite(r); },
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,67.51094l-91.42,-47.50094l-15.67,30.18l81.63,42.41c9.85867,5.12651 18.34534,10.58156 25.46,16.36515l0,22.63485c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c3.19226,2.64187 7.20242,4.60215 12.03049,5.88084c-1.88234,7.32825 -4.94584,15.07464 -9.19049,23.23916l31.95,16.6c0.55333,-1 1.09,-2 1.61,-3c6.19684,-11.92639 9.46051,-23.36639 9.79102,-34.32l17.60898,0l0,-30l-15.6,0c-3.10687,0 -5.87439,-0.06787 -8.30256,-0.20361c-3.16081,-7.31727 -7.49996,-14.72606 -13.01744,-22.22639l0.37,-0.71l38.69,20.1l14.75,-28.4l-58.09,-30.183l0,-85.177l41.2,0l0,-30l-41.2,0l0,-62z');
|
||||
compareBoolean(function() { return t.subtract(r); },
|
||||
'M283.8,165.2l0,62l-35.2,0l0,30l35.2,0l0,67.51094l34,17.66607l0,-85.177l41.2,0l0,-30l-41.2,0l0,-62z M283.8,366.16515l0,22.63485c0,9.6 0.93333,17.33333 2.8,23.2c1.86667,5.86667 4.73333,10.4 8.6,13.6c3.19226,2.64187 7.20242,4.60215 12.03049,5.88084c0.89964,-3.50246 1.52948,-6.9094 1.88951,-10.22084c1.11333,-10.24 -0.17333,-19.62333 -3.86,-28.15c-3.68667,-8.52 -9.47,-16.33 -17.35,-23.43c-1.31496,-1.1848 -2.68496,-2.35641 -4.11,-3.51485z M341.39102,434l17.60898,0l0,-30l-15.6,0c-3.10687,0 -5.87439,-0.06787 -8.30256,-0.20361c3.19425,7.39468 5.1851,14.69588 5.97256,21.90361c0.29845,2.73492 0.40546,5.50159 0.32102,8.3z');
|
||||
compareBoolean(function() { return t.intersect(r); },
|
||||
'M283.8,324.71094l0,41.45422c1.42504,1.15843 2.79504,2.33005 4.11,3.51485c7.88,7.1 13.66333,14.91 17.35,23.43c3.68667,8.52667 4.97333,17.91 3.86,28.15c-0.36003,3.31143 -0.98987,6.71838 -1.88951,10.22084c1.02,0.27014 2.0765,0.50986 3.16951,0.71916c6.26667,1.2 13.8,1.8 22.6,1.8l8.39102,0c0.08444,-2.79841 -0.02257,-5.56508 -0.32102,-8.3c-0.78746,-7.20773 -2.77831,-14.50893 -5.97256,-21.90361c-1.74009,-0.09727 -3.3059,-0.2294 -4.69744,-0.39639c-3.33333,-0.4 -5.93333,-1.26667 -7.8,-2.6c-1.86667,-1.33333 -3.13333,-3.2 -3.8,-5.6c-0.66667,-2.4 -1,-5.6 -1,-9.6l0,-43.223z');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue