Clusterizator.Krab.Connection.Connection C# (CSharp) 메소드

Connection() 공개 메소드

Initializes a new instance of the Connection class.
/// Thrown if index or indexes are negative. ///
public Connection ( int firstIndex, int secondIndex ) : System
firstIndex int /// Index of first point. ///
secondIndex int /// Index of second point. ///
리턴 System
        public Connection(int firstIndex, int secondIndex)
        {
            if ((firstIndex < 0) || (secondIndex < 0))
            {
                throw new ArgumentException("Point index can't be less than 0.");
            }

            Connected = false;
            FirstElementIndex = firstIndex;
            SecondElementIndex = secondIndex;
        }