Advertisement
Margoshinka

Point

Dec 29th, 2021 (edited)
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.21 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace ex1
  6. {
  7.     class point : Base
  8.     {
  9.  
  10.         protected internal point():base()
  11.         {
  12.            
  13.  
  14.         }
  15.  
  16.         protected internal point(int a, int b, int c):base(a,b,c)
  17.         {
  18.            
  19.         }
  20.         protected internal  point Middle()
  21.         {
  22.             point t = new point(this.I1 / 2, this.I2 / 2, this.I3 / 2);
  23.  
  24.             return t;
  25.         }
  26.         protected internal  List<point> Symmetry(List<point> list)
  27.         {
  28.             point p = new point(0 - this.I1, this.I2, this.I3);
  29.             list.Add(p);
  30.             point p1 = new point(this.I1, 0-this.I2, this.I3);
  31.             list.Add(p1);
  32.             point p2 = new point(this.I1, this.I2, 0-this.I3);
  33.             list.Add(p2);
  34.             return list;
  35.         }
  36.         protected internal List<point> Projection(List<point> list)
  37.         {
  38.             point p = new point(0 , this.I2, this.I3);
  39.             list.Add(p);
  40.             point p1 = new point(this.I1, 0 , this.I3);
  41.             list.Add(p1);
  42.             point p2 = new point(this.I1, this.I2, 0 );
  43.             list.Add(p2);
  44.             return list;
  45.         }
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement