return result;
}
private static void testClippingPoints()
{
ChsRectangle rectA = new ChsRectangle(5, 6, 2, 4);
ChsRectangle rectB;
rectB = new ChsRectangle(0, 4, 1, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 4, 1, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 3, 3, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(2, 3, 2, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(3, 3, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(3, 2, 4, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(6, 3, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(9, 2, 4, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(9, 3, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(8, 3, 2, 4);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(11, 3, 3, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(11, 4, 1, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(10, 4, 1, 4);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(10, 5, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(9, 4.5, 2, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(10, 5.8, 0.4, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(11, 6, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(10, 7.8, 0.4, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(9, 7.5, 1, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(10, 7, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(10, 9, 2, 6);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(11, 9, 2, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(12, 8, 4, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(7, 9, 2, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(8, 9, 4, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(10, 9, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(6, 10, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(3, 8, 4, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(3, 9, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(2, 8, 4, 4);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(2, 8, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 8, 2, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 8.5, 1, 4);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(3, 7, 2, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 7.5, 1, 4);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(3, 7.8, 0.4, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(1, 6, 2, 2);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(3, 5.8, 0.4, 2);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 5, 1, 3);
findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(1, 4, 3, 3);
findAndPrintClipPoints(rectA, rectB);
//----------------------------------------------
rectB = new ChsRectangle(4, 4, 3, 3);
// findAndPrintClipPoints(rectA, rectB);
rectB = new ChsRectangle(5, 6, 2, 4);
// findAndPrintClipPoints(rectA, rectB);
}