コード例 #1
0
ファイル: Wire.cs プロジェクト: cdhanna/track-wire
 public Wire(WireSpot[] spots, WirePart[] parts)
 {
     // copy the arrays to avoid contamination later on.
     Spots = new WireSpot[spots.Length];
     Array.Copy(spots, Spots, spots.Length);
     Parts = new WirePart[parts.Length];
     Array.Copy(parts, Parts, parts.Length);
 }
コード例 #2
0
 public WirePart(WireSpot a, WireSpot b)
 {
     A = a;
     B = b;
 }