/// <summary>
 /// Generates a hash suitable for use with containers like `HashSet` and `Dictionary`.
 /// </summary>
 /// <returns>A hash code generated from this object's fields.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = lightEstimation.GetHashCode();
         hash = hash * 486187739 + timestampNs.GetHashCode();
         hash = hash * 486187739 + projectionMatrix.GetHashCode();
         hash = hash * 486187739 + displayMatrix.GetHashCode();
         hash = hash * 486187739 + HashCodeUtil.ReferenceHash(textures);
         hash = hash * 486187739 + HashCodeUtil.ReferenceHash(propertyNameIds);
         hash = hash * 486187739 + exposureDuration.GetHashCode();
         hash = hash * 486187739 + exposureOffset.GetHashCode();
         hash = hash * 486187739 + cameraGrainTexture.GetHashCode();
         hash = hash * 486187739 + noiseIntensity.GetHashCode();
         hash = hash * 486187739 + (enabledMaterialKeywords == null ? 0 : enabledMaterialKeywords.GetHashCode());
         hash = hash * 486187739 + (disabledMaterialKeywords == null ? 0 : disabledMaterialKeywords.GetHashCode());
         return hash;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Generates a hash suitable for use with containers like `HashSet` and `Dictionary`.
 /// </summary>
 /// <returns>A hash code generated from this object's fields.</returns>
 public override int GetHashCode() => HashCodeUtil.Combine(
     m_Hit.GetHashCode(),
     distance.GetHashCode(),
     HashCodeUtil.ReferenceHash(m_Transform),
     HashCodeUtil.ReferenceHash(trackable));
 /// <summary>
 /// Generates a hash code suitable for using in a `HashSet` or `Dictionary`.
 /// </summary>
 /// <returns>Returns a hash code suitable for using in a `HashSet` or `Dictionary`.</returns>
 public override int GetHashCode() => HashCodeUtil.Combine(
     HashCodeUtil.ReferenceHash(sessionOrigin),
     HashCodeUtil.ReferenceHash(trackablesParent));
 /// <summary>
 /// Generates a hash suitable for use with containers like `HashSet` and `Dictionary`.
 /// </summary>
 /// <returns>A hash code generated from this object's fields.</returns>
 public override int GetHashCode() => HashCodeUtil.Combine(
     HashCodeUtil.ReferenceHash(added),
     HashCodeUtil.ReferenceHash(updated),
     HashCodeUtil.ReferenceHash(removed));
 /// <summary>
 /// Generates a hash suitable for use with containers like `HashSet` and `Dictionary`.
 /// </summary>
 /// <returns>A hash code generated from this object's fields.</returns>
 public override int GetHashCode() => HashCodeUtil.Combine(
     HashCodeUtil.ReferenceHash(textures),
     HashCodeUtil.ReferenceHash(propertyNameIds),
     HashCodeUtil.ReferenceHash(enabledMaterialKeywords),
     HashCodeUtil.ReferenceHash(disabledMaterialKeywords));
 /// <summary>
 /// Generates a hash suitable for use with containers like `HashSet` and `Dictionary`.
 /// </summary>
 /// <returns>A hash code generated from this object's fields.</returns>
 public override int GetHashCode() => HashCodeUtil.ReferenceHash(plane);