Ejemplo n.º 1
0
 public static int CalculateHashCode(ref BrushMeshBlob blob)
 {
     unchecked
     {
         return((int)math.hash(
                    new uint3(blob.polygons.Length == 0 ? 0 : HashExtensions.GetHashCode(blob.polygons),
                              blob.localVertices.Length == 0 ? 0 : HashExtensions.GetHashCode(blob.localVertices),
                              blob.halfEdges.Length == 0 ? 0 : HashExtensions.GetHashCode(blob.halfEdges))));
     }
 }
Ejemplo n.º 2
0
 public static uint GetHashCode(ref Polygon polygon)
 {
     return(HashExtensions.GetHashCode(ref polygon));
 }