Ejemplo n.º 1
0
        public void SamplePointsAndVectors()
        {
            var point1 = new SKPoint(50, 50);
            var point2 = new SKPoint(110, 200);
            var point3 = new SKPoint(80, 80);
            var vector = point2 - point1;
            var point4 = SKPoint.Add(point3, vector);

            var p1 = new SKPath();

            p1.MoveTo(point1);
            p1.LineTo(point2);

            var p2 = new SKPath();

            p2.MoveTo(point3);
            p2.LineTo(point4);

            SkiaSharpHelper.DrawLines(new[] { p1, p2 });
        }