示例#1
0
 public override int GetHashCode()
 {
     return
         ((RightBound.GetHashCode() >> 3 << 3) +
          (LeftBound.GetHashCode() >> 2 << 2) +
          (IsLeftInclusive ? 2 : 0) +
          (IsRightInclusive ? 1 : 0));
 }
示例#2
0
        // -----------------------------------
        // ----- object methods overriding----
        // -----------------------------------

        public override string ToString()
        {
            return((IsLeftInclusive?"[":"(") + LeftBound.ToString() + "; " + RightBound.ToString() + (IsRightInclusive?"]":")"));
        }
示例#3
0
 public void PrintBound()
 {
     Debug.Log("LeftBound " + LeftBound.ToFloat() + " RightBound " + RightBound.ToFloat() + " UpBound " + UpBound.ToFloat() + " DownBound " + DownBound.ToFloat());
 }