Example #1
0
 public Tuple3 PositionAt(double ut, ReferenceFrame referenceFrame)
 {
     if (ReferenceEquals(referenceFrame, null))
     {
         throw new ArgumentNullException(nameof(referenceFrame));
     }
     return(referenceFrame.PositionFromWorldSpace(InternalOrbit.getPositionAtUT(ut)).ToTuple());
 }
Example #2
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(InternalOrbit.GetHashCode());
 }
Example #3
0
 public double RadiusAt(double ut)
 {
     return(InternalOrbit.getRelativePositionAtUT(ut).magnitude);
 }
Example #4
0
 public double EccentricAnomalyAtUT(double ut)
 {
     return(InternalOrbit.EccentricAnomalyAtUT(ut));
 }
Example #5
0
 public double OrbitalSpeedAt(double time)
 {
     return(InternalOrbit.getOrbitalSpeedAt(time));
 }
Example #6
0
 public double UTAtTrueAnomaly(double trueAnomaly)
 {
     return(InternalOrbit.GetUTforTrueAnomaly(trueAnomaly, 0));
 }
Example #7
0
 public double TrueAnomalyAtUT(double ut)
 {
     return(InternalOrbit.TrueAnomalyAtUT(ut));
 }
Example #8
0
 public double TrueAnomalyAtRadius(double radius)
 {
     return(InternalOrbit.TrueAnomalyAtRadius(radius));
 }
Example #9
0
 public double RadiusAtTrueAnomaly(double trueAnomaly)
 {
     return(InternalOrbit.RadiusAtTrueAnomaly(trueAnomaly));
 }
Example #10
0
        public double MeanAnomalyAtUT(double ut)
        {
            var percent = InternalOrbit.getObtAtUT(ut) / InternalOrbit.period;

            return(percent * (2 * Math.PI));
        }