public bool Equals(LineBase V) { if (V == null) { return(false); } return(this == V); }
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); } }
private static void refract(LineBase l) { l.Adjust((Vector v) => v.GetRotationAbout(v ^ Vector.UnitZ, Util.GetInverseRefractionCorrection(v.Inclination))); }
public virtual void AddLine(LineBase Line) { this.lines.Add(Line); }
public LineContinuation Copy(LineBase Parent) { return(new LineContinuation(Parent, this.P2, this.LineType)); }
public LineContinuation(LineBase Parent, Vector P2, LineType LineType) { this.Parent = Parent; this.P2 = P2; this.LineType = LineType; }
public LineContinuation(LineBase Parent, Vector P2) { this.Parent = Parent; this.P2 = P2; this.LineType = LineType.Normal; }
public override void Overwrite(LineBase Line) { base.Overwrite(Line); P1 = Line.P1; }
public virtual void Overwrite(LineBase Line) { P2 = Line.P2; }