Esempio n. 1
0
        public Section Increase2()
        {
            Tochka tempStart = new Tochka(start * 2);
            Tochka tempEnd   = new Tochka(end * 2);

            return(new Section(tempStart, tempEnd));
        }
Esempio n. 2
0
        public static Tochka operator *(Tochka obj1, double num)
        {
            Tochka result = new Tochka();

            result.x = obj1.x * num;
            result.y = obj1.y * num;
            return(result);
        }
Esempio n. 3
0
        public static Tochka operator -(Tochka obj1, Tochka obj2)
        {
            Tochka result = new Tochka();

            result.x = obj1.x - obj2.x;
            result.y = obj1.y - obj2.y;
            return(result);
        }
Esempio n. 4
0
 public Tochka(Tochka obj) : this(obj.x, obj.y)
 {
 }
Esempio n. 5
0
 public Section(Tochka s, Tochka e) : base(s, e)
 {
 }
Esempio n. 6
0
 public Line(Tochka s, Tochka e)
 {
     start  = s;
     end    = e;
     Length = GetLength();
 }