public override int GetHashCode() { return ((RightBound.GetHashCode() >> 3 << 3) + (LeftBound.GetHashCode() >> 2 << 2) + (IsLeftInclusive ? 2 : 0) + (IsRightInclusive ? 1 : 0)); }
// ----------------------------------- // ----- object methods overriding---- // ----------------------------------- public override string ToString() { return((IsLeftInclusive?"[":"(") + LeftBound.ToString() + "; " + RightBound.ToString() + (IsRightInclusive?"]":")")); }
public void PrintBound() { Debug.Log("LeftBound " + LeftBound.ToFloat() + " RightBound " + RightBound.ToFloat() + " UpBound " + UpBound.ToFloat() + " DownBound " + DownBound.ToFloat()); }