Пример #1
0
        public static Cone GlassCone()
        {
            Cone c = new Cone();

            c.Material.Transparency    = 1.0;
            c.Material.RefractiveIndex = 1.5;
            c.Minimum  = -1;
            c.Maximum  = 0;
            c.IsClosed = true;
            return(c);
        }
Пример #2
0
 public bool Equals(Cone other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return
         (Transform == other.Transform &&
          Material == other.Material &&
          Globals.EqualityOfDouble(Minimum, other.Minimum) &&
          Globals.EqualityOfDouble(Maximum, other.Maximum) &&
          IsClosed == other.IsClosed);
 }