Facebook
From Perl Baboon, 4 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 202
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Elektromagnes
  8. {
  9.     class CRysunek
  10.     {
  11.         //punkt p1
  12.         private float x1;
  13.         private float y1;
  14.  
  15.         //punkt p2
  16.         private float x2;
  17.         private float y2;
  18.  
  19.         //punkt p3
  20.         private float x3;
  21.         private float y3;
  22.  
  23.         //punkt p4
  24.         private float x4;
  25.         private float y4;
  26.  
  27.         public float X1
  28.         {
  29.             get
  30.             {
  31.                 return x1;
  32.             }
  33.  
  34.             set
  35.             {
  36.                 x1 = value;
  37.             }
  38.         }
  39.  
  40.         public float Y1
  41.         {
  42.             get
  43.             {
  44.                 return y1;
  45.             }
  46.  
  47.             set
  48.             {
  49.                 y1 = value;
  50.             }
  51.         }
  52.  
  53.         public float X2
  54.         {
  55.             get
  56.             {
  57.                 return x2;
  58.             }
  59.  
  60.             set
  61.             {
  62.                 x2 = value;
  63.             }
  64.         }
  65.  
  66.         public float Y2
  67.         {
  68.             get
  69.             {
  70.                 return y2;
  71.             }
  72.  
  73.             set
  74.             {
  75.                 y2 = value;
  76.             }
  77.         }
  78.  
  79.         public float X3
  80.         {
  81.             get
  82.             {
  83.                 return x3;
  84.             }
  85.  
  86.             set
  87.             {
  88.                 x3 = value;
  89.             }
  90.         }
  91.  
  92.         public float Y3
  93.         {
  94.             get
  95.             {
  96.                 return y3;
  97.             }
  98.  
  99.             set
  100.             {
  101.                 y3 = value;
  102.             }
  103.         }
  104.  
  105.         public float X4 { get => x4; set => x4 = value; }
  106.         public float Y4 { get => y4; set => y4 = value; }
  107.     }
  108. }
  109.