/// <summary> /// Gets a unique hash code for the triangle. /// </summary> /// <returns>A hash code.</returns> public override int GetHashCode() { //see http://stackoverflow.com/a/263416/1122135 int hash = 17; hash = hash * 23 + A.GetHashCode(); hash = hash * 23 + B.GetHashCode(); hash = hash * 23 + C.GetHashCode(); return(hash); }
/// <summary> /// Generates a unique hashcode for this bouding box instance. /// </summary> /// <returns>A hash code.</returns> public override int GetHashCode() { //TODO write a better hash code return(Min.GetHashCode() ^ Max.GetHashCode()); }
public override int GetHashCode() { return(_vector.GetHashCode()); }