Ejemplo n.º 1
0
 private static async Task StartDemoAsync(IDrawingService drawingService)
 {
     var lines = new IDrawingPrimitive[]
     {
         new LinePrimitive(VectorPosition.FromCentimeters(1, 1), VectorPosition.FromCentimeters(2, 2))
     };
     await drawingService.DrawAsync(new RandomPrimitive(-1));
 }
Ejemplo n.º 2
0
 public void Test_length_in_centimeters_correctness(double x, double y, double length)
 {
     VectorPosition.FromCentimeters(x, y).CentimetersLength.IsSameOrEqualTo(length);
 }