public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (relativePosition_ != null) { hash ^= RelativePosition.GetHashCode(); } if (relativeVelocity_ != null) { hash ^= RelativeVelocity.GetHashCode(); } if (Rcs != 0D) { hash ^= Rcs.GetHashCode(); } if (Movable != false) { hash ^= Movable.GetHashCode(); } if (Width != 0D) { hash ^= Width.GetHashCode(); } if (Length != 0D) { hash ^= Length.GetHashCode(); } if (Height != 0D) { hash ^= Height.GetHashCode(); } if (Theta != 0D) { hash ^= Theta.GetHashCode(); } if (absolutePosition_ != null) { hash ^= AbsolutePosition.GetHashCode(); } if (absoluteVelocity_ != null) { hash ^= AbsoluteVelocity.GetHashCode(); } if (Count != 0) { hash ^= Count.GetHashCode(); } if (MovingFramesCount != 0) { hash ^= MovingFramesCount.GetHashCode(); } return(hash); }
public void MergeFrom(RadarObstacle other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.relativePosition_ != null) { if (relativePosition_ == null) { relativePosition_ = new global::Apollo.Common.Point3D(); } RelativePosition.MergeFrom(other.RelativePosition); } if (other.relativeVelocity_ != null) { if (relativeVelocity_ == null) { relativeVelocity_ = new global::Apollo.Common.Point3D(); } RelativeVelocity.MergeFrom(other.RelativeVelocity); } if (other.Rcs != 0D) { Rcs = other.Rcs; } if (other.Movable != false) { Movable = other.Movable; } if (other.Width != 0D) { Width = other.Width; } if (other.Length != 0D) { Length = other.Length; } if (other.Height != 0D) { Height = other.Height; } if (other.Theta != 0D) { Theta = other.Theta; } if (other.absolutePosition_ != null) { if (absolutePosition_ == null) { absolutePosition_ = new global::Apollo.Common.Point3D(); } AbsolutePosition.MergeFrom(other.AbsolutePosition); } if (other.absoluteVelocity_ != null) { if (absoluteVelocity_ == null) { absoluteVelocity_ = new global::Apollo.Common.Point3D(); } AbsoluteVelocity.MergeFrom(other.AbsoluteVelocity); } if (other.Count != 0) { Count = other.Count; } if (other.MovingFramesCount != 0) { MovingFramesCount = other.MovingFramesCount; } }