コード例 #1
0
ファイル: Path.cs プロジェクト: ndvalkov/TelerikAcademy2016
 public void AddPoint(Point3D point)
 {
     SimpleValidator.CheckNull(point, "Point");
     pointSequence.Push(point);
 }
コード例 #2
0
ファイル: Path.cs プロジェクト: ndvalkov/TelerikAcademy2016
 public Path(IEnumerable <Point3D> pointSequence) : this()
 {
     SimpleValidator.CheckNull(pointSequence, "Point sequence");
     this.pointSequence = new Stack <Point3D>(pointSequence);
 }