Accord.Math.Vector3.GetHashCode C# (CSharp) Method

GetHashCode() public method

Returns the hashcode for this instance.
public GetHashCode ( ) : int
return int
        public override int GetHashCode( )
        {
            return X.GetHashCode( ) + Y.GetHashCode( ) + Z.GetHashCode( );
        }

Usage Example

コード例 #1
0
ファイル: Point3.cs プロジェクト: sishui198/Accord.NET
 /// <summary>
 ///   Returns a hash code for this instance.
 /// </summary>
 ///
 /// <returns>
 ///   A hash code for this instance, suitable for use in hashing
 ///   algorithms and data structures like a hash table.
 /// </returns>
 ///
 public override int GetHashCode()
 {
     return(coordinates.GetHashCode());
 }