예제 #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());
 }