Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (stopPoint_ != null)
            {
                hash ^= StopPoint.GetHashCode();
            }
            if (CruiseSpeed != 0D)
            {
                hash ^= CruiseSpeed.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(PlanningTarget other)
 {
     if (other == null)
     {
         return;
     }
     if (other.stopPoint_ != null)
     {
         if (stopPoint_ == null)
         {
             stopPoint_ = new global::Apollo.Planning.StopPoint();
         }
         StopPoint.MergeFrom(other.StopPoint);
     }
     if (other.CruiseSpeed != 0D)
     {
         CruiseSpeed = other.CruiseSpeed;
     }
 }