Esempio n. 1
0
 public bool Equals(LineBase V)
 {
     if (V == null)
     {
         return(false);
     }
     return(this == V);
 }
Esempio n. 2
0
        public void AddLines(LineBase Line, IEnumerable <Vector> Continuations)
        {
            AddLine(Line);

            LineBase l = Line;

            foreach (var vv in Continuations)
            {
                l = new LineContinuation(l, vv);
                AddLine(l);
            }
        }
Esempio n. 3
0
 private static void refract(LineBase l)
 {
     l.Adjust((Vector v) => v.GetRotationAbout(v ^ Vector.UnitZ, Util.GetInverseRefractionCorrection(v.Inclination)));
 }
Esempio n. 4
0
 public virtual void AddLine(LineBase Line)
 {
     this.lines.Add(Line);
 }
Esempio n. 5
0
 public LineContinuation Copy(LineBase Parent)
 {
     return(new LineContinuation(Parent, this.P2, this.LineType));
 }
Esempio n. 6
0
 public LineContinuation(LineBase Parent, Vector P2, LineType LineType)
 {
     this.Parent   = Parent;
     this.P2       = P2;
     this.LineType = LineType;
 }
Esempio n. 7
0
 public LineContinuation(LineBase Parent, Vector P2)
 {
     this.Parent   = Parent;
     this.P2       = P2;
     this.LineType = LineType.Normal;
 }
Esempio n. 8
0
 public override void Overwrite(LineBase Line)
 {
     base.Overwrite(Line);
     P1 = Line.P1;
 }
Esempio n. 9
0
 public virtual void Overwrite(LineBase Line)
 {
     P2 = Line.P2;
 }