public int CompareTo(Index4i other) { if (a != other.a) { return(a < other.a ? -1 : 1); } else if (b != other.b) { return(b < other.b ? -1 : 1); } else if (c != other.c) { return(c < other.c ? -1 : 1); } else if (d != other.d) { return(d < other.d ? -1 : 1); } return(0); }
public bool Equals(Index4i other) { return(a == other.a && b == other.b && c == other.c && d == other.d); }
public void Set(Index4i o) { a = o[0]; b = o[1]; c = o[2]; d = o[3]; }
public Index4i(Index4i copy) { a = copy.a; b = copy.b; c = copy.b; d = copy.d; }