Ejemplo n.º 1
0
        public void StrokeStrokeDisjoint(IDrawingTarget target, IDrawingBackend backend)
        {
            var c1 = backend.Line(35, 15, 45, 25);
            var c2 = backend.Line(30, 10, 20, 20);

            draw(target, c1, c2);
            expectRelation(c1, c2, GeometryRelation.Disjoint);
        }
Ejemplo n.º 2
0
        public void StrokeStrokeOverlaps(IDrawingTarget target, IDrawingBackend backend)
        {
            var c1 = backend.Line(35, 15, 45, 25);
            var c2 = backend.Line(50, 10, 35, 20);

            draw(target, c1, c2);
            expectRelation(c1, c2, GeometryRelation.Overlap);
        }
Ejemplo n.º 3
0
 public void StrokeFillIsContained(IDrawingTarget target, IDrawingBackend backend)
 {
     var c1 = backend.Line(35, 15, 45, 25);
     var c2 = backend.Ellipse(30, 10, 20, 20);
     draw(target, c1, c2);
     expectRelation(c1, c2, GeometryRelation.IsContained);
 }
Ejemplo n.º 4
0
 public void StrokeFillDisjoint(IDrawingTarget target, IDrawingBackend backend)
 {
     var c1 = backend.Line(25, 10, 25, 30);
     var c2 = backend.Ellipse(30, 10, 20, 20);
     draw(target, c1, c2);
     expectRelation(c1, c2, GeometryRelation.Disjoint);
 }
Ejemplo n.º 5
0
        public void StrokeFillIsContained(IDrawingTarget target, IDrawingBackend backend)
        {
            var c1 = backend.Line(35, 15, 45, 25);
            var c2 = backend.Ellipse(30, 10, 20, 20);

            draw(target, c1, c2);
            expectRelation(c1, c2, GeometryRelation.IsContained);
        }
Ejemplo n.º 6
0
        public void StrokeFillOverlap(IDrawingTarget target, IDrawingBackend backend)
        {
            var c1 = backend.Line(30, 10, 50, 30);
            var c2 = backend.Ellipse(30, 10, 20, 20);

            draw(target, c1, c2);
            expectRelation(c1, c2, GeometryRelation.Overlap);
        }
Ejemplo n.º 7
0
        public void StrokeFillDisjoint(IDrawingTarget target, IDrawingBackend backend)
        {
            var c1 = backend.Line(25, 10, 25, 30);
            var c2 = backend.Ellipse(30, 10, 20, 20);

            draw(target, c1, c2);
            expectRelation(c1, c2, GeometryRelation.Disjoint);
        }
Ejemplo n.º 8
0
		public static IGeometry Line(this IDrawingBackend backend, Point from, Point to)
		{
			return backend.Line(from.X, from.Y, to.X, to.Y);
		}
Ejemplo n.º 9
0
 public void StrokeStrokeDisjoint(IDrawingTarget target, IDrawingBackend backend)
 {
     var c1 = backend.Line(35, 15, 45, 25);
     var c2 = backend.Line(30, 10, 20, 20);
     draw(target, c1, c2);
     expectRelation(c1, c2, GeometryRelation.Disjoint);
 }
Ejemplo n.º 10
0
 public void StrokeFillOverlap(IDrawingTarget target, IDrawingBackend backend)
 {
     var c1 = backend.Line(30, 10, 50, 30);
     var c2 = backend.Ellipse(30, 10, 20, 20);
     draw(target, c1, c2);
     expectRelation(c1, c2, GeometryRelation.Overlap);
 }
Ejemplo n.º 11
0
 public void StrokeStrokeOverlaps(IDrawingTarget target, IDrawingBackend backend)
 {
     var c1 = backend.Line(35, 15, 45, 25);
     var c2 = backend.Line(50, 10, 35, 20);
     draw(target, c1, c2);
     expectRelation(c1, c2, GeometryRelation.Overlap);
 }