コード例 #1
0
 public bool Equals(Material other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return
         (Ambient.IsEquivalentTo(other.Ambient) &&
          Color.IsEquivalentTo(other.Color) &&
          Diffuse.IsEquivalentTo(other.Diffuse) &&
          Shininess.IsEquivalentTo(other.Shininess) &&
          Specular.IsEquivalentTo(other.Specular));
 }