示例#1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Camera other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Up == other.Up ||
                     Up != null &&
                     Up.Equals(other.Up)
                     ) &&
                 (
                     Center == other.Center ||
                     Center != null &&
                     Center.Equals(other.Center)
                 ) &&
                 (
                     Eye == other.Eye ||
                     Eye != null &&
                     Eye.Equals(other.Eye)
                 ) &&
                 (
                     Projection == other.Projection ||
                     Projection != null &&
                     Projection.Equals(other.Projection)
                 ));
        }
示例#2
0
 public bool Equals(Fraction other)
 {
     if (other is null)
     {
         return(false);
     }
     return(Up.Equals(other.Up) && Down.Equals(other.Down));
 }
示例#3
0
        public bool Equals([AllowNull] Camera other)
        {
            if(other == null)
                return false;

            if(ReferenceEquals(this, other))
                return true;

            return (Up         == other.Up         && Up         != null && other.Up         != null && Up.Equals(other.Up))         &&
                   (Center     == other.Center     && Center     != null && other.Center     != null && Center.Equals(other.Center)) &&
                   (Eye        == other.Eye        && Eye        != null && other.Eye        != null && Eye.Equals(other.Eye))       &&
                   (Projection == other.Projection && Projection != null && other.Projection != null && Projection.Equals(other.Projection));
        }