Example #1
0
        /// <summary>
        /// Returns true if Location instances are equal
        /// </summary>
        /// <param name="other">Instance of Location to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Location other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     UserRef == other.UserRef ||
                     UserRef != null &&
                     UserRef.Equals(other.UserRef)
                     ) &&
                 (
                     Yaw == other.Yaw ||
                     Yaw != null &&
                     Yaw.Equals(other.Yaw)
                 ) &&
                 (
                     Position == other.Position ||
                     Position != null &&
                     Position.Equals(other.Position)
                 ) &&
                 (
                     Timestamp == other.Timestamp ||
                     Timestamp != null &&
                     Timestamp.Equals(other.Timestamp)
                 ));
        }
Example #2
0
 public bool Equals(Euler3 other) =>
 Yaw.Equals(other.Yaw) &&
 Pitch.Equals(other.Pitch) &&
 Roll.Equals(other.Roll);
Example #3
0
 protected bool Equals(HeadPoseData other)
 {
     return(X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z) && Yaw.Equals(other.Yaw) && Pitch.Equals(other.Pitch) && Roll.Equals(other.Roll));
 }
Example #4
0
 public bool Equals(RealEulerAngles3d other) =>
 Yaw.Equals(other.Yaw) &&
 Pitch.Equals(other.Pitch) &&
 Roll.Equals(other.Roll);
Example #5
0
 protected bool Equals(Rotation other)
 {
     return(Roll.Equals(other.Roll) && Yaw.Equals(other.Yaw) && Pitch.Equals(other.Pitch));
 }
Example #6
0
 public bool Equals(RealEulerAngles2d other) =>
 Yaw.Equals(other.Yaw) &&
 Pitch.Equals(other.Pitch);
Example #7
0
 public bool Equals(Euler2 other) =>
 Yaw.Equals(other.Yaw) &&
 Pitch.Equals(other.Pitch);