Esempio n. 1
0
        public bool Equals([AllowNull] Scene other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return((BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) &&
                   (Camera == other.Camera && Camera != null && other.Camera != null && Camera.Equals(other.Camera)) &&
                   (Domain == other.Domain && Domain != null && other.Domain != null && Domain.Equals(other.Domain)) &&
                   (AspectMode == other.AspectMode && AspectMode != null && other.AspectMode != null && AspectMode.Equals(other.AspectMode)) &&
                   (AspectRatio == other.AspectRatio && AspectRatio != null && other.AspectRatio != null && AspectRatio.Equals(other.AspectRatio)) &&
                   (XAxis == other.XAxis && XAxis != null && other.XAxis != null && XAxis.Equals(other.XAxis)) &&
                   (YAxis == other.YAxis && YAxis != null && other.YAxis != null && YAxis.Equals(other.YAxis)) &&
                   (ZAxis == other.ZAxis && ZAxis != null && other.ZAxis != null && ZAxis.Equals(other.ZAxis)) &&
                   (DragMode == other.DragMode && DragMode != null && other.DragMode != null && DragMode.Equals(other.DragMode)) &&
                   (HoverMode == other.HoverMode && HoverMode != null && other.HoverMode != null && HoverMode.Equals(other.HoverMode)) &&
                   (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision)) &&
                   (Equals(Annotations, other.Annotations) || Annotations != null && other.Annotations != null && Annotations.SequenceEqual(other.Annotations)));
        }
 public bool Equals(MarkerEditViewModel other)
 {
     return(Name == other.Name &&
            X.Equals(other.X) &&
            Y.Equals(other.Y) &&
            Z.Equals(other.Z) &&
            XAxis.Equals(other.XAxis) &&
            YAxis.Equals(other.YAxis) &&
            ZAxis.Equals(other.ZAxis) &&
            Actions.Equals(other.Actions) &&
            Id == other.Id);
 }
Esempio n. 3
0
        /// <summary>
        /// Returns a boolean indicating whether the given Plane is equal to this Plane instance.<br/>
        /// The plane are equals if they have same origin and axises.
        /// </summary>
        /// <param name="other">The Plane to compare this instance to.</param>
        /// <returns>True if the other Plane is equal to this instance; False otherwise.</returns>
        public bool Equals(Plane other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(false);
            }

            return(Origin.Equals(other.Origin) &&
                   XAxis.Equals(other.XAxis) &&
                   YAxis.Equals(other.YAxis) &&
                   ZAxis.Equals(other.ZAxis));
        }
Esempio n. 4
0
 //
 // Summary:
 //     Determines if another plane has the same components as this plane.
 //
 // Parameters:
 //   plane:
 //     A plane.
 //
 // Returns:
 //     true if plane has the same components as this plane; false otherwise.
 public bool Equals(Plane3D plane)
 {
     return(Origin.Equals(plane.Origin) && XAxis.Equals(plane.XAxis) && YAxis.Equals(plane.YAxis) && ZAxis.Equals(plane.ZAxis));
 }