Exemplo n.º 1
0
 /// <inheritdoc />
 protected bool Equals(Orbit other)
 {
     return(MeanAnomoly.Equals(other.MeanAnomoly) && AscendingNode.Equals(other.AscendingNode) &&
            ArgumentPerigee.Equals(other.ArgumentPerigee) && MeanMotion.Equals(other.MeanMotion) &&
            RecoveredSemiMajorAxis.Equals(other.RecoveredSemiMajorAxis) &&
            RecoveredMeanMotion.Equals(other.RecoveredMeanMotion) && Perigee.Equals(other.Perigee) &&
            Apogee.Equals(other.Apogee) && Period.Equals(other.Period) && Epoch.Equals(other.Epoch) &&
            BStar.Equals(other.BStar) && Eccentricity.Equals(other.Eccentricity) &&
            Inclination.Equals(other.Inclination));
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MeanAnomoly.GetHashCode();
         hashCode = (hashCode * 397) ^ AscendingNode.GetHashCode();
         hashCode = (hashCode * 397) ^ ArgumentPerigee.GetHashCode();
         hashCode = (hashCode * 397) ^ MeanMotion.GetHashCode();
         hashCode = (hashCode * 397) ^ RecoveredSemiMajorAxis.GetHashCode();
         hashCode = (hashCode * 397) ^ RecoveredMeanMotion.GetHashCode();
         hashCode = (hashCode * 397) ^ Perigee.GetHashCode();
         hashCode = (hashCode * 397) ^ Apogee.GetHashCode();
         hashCode = (hashCode * 397) ^ Period.GetHashCode();
         hashCode = (hashCode * 397) ^ Epoch.GetHashCode();
         hashCode = (hashCode * 397) ^ BStar.GetHashCode();
         hashCode = (hashCode * 397) ^ Eccentricity.GetHashCode();
         hashCode = (hashCode * 397) ^ Inclination.GetHashCode();
         return(hashCode);
     }
 }