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)))); } }
public static uint GetHashCode(ref Polygon polygon) { return(HashExtensions.GetHashCode(ref polygon)); }