示例#1
0
        internal ProjectileMotionPoint(ProjectileMotionSettings settings, Time t)
        {
            Settings  = settings;
            IsHighest = false;

            T = t;

            if (T == ProjectileMotionPointsComputation.GetTimeInitial() && Settings.Quantities.Α.Val == 0)
            {
                IsHighest  = true;
                WasHighest = true;
            }

            ProjectileMotionPointsComputation projectileMotionPointsComputation = new ProjectileMotionPointsComputation(Settings);

            Y  = projectileMotionPointsComputation.GetY(T);
            X  = projectileMotionPointsComputation.GetX(T);
            Vx = projectileMotionPointsComputation.GetVelocityX();
            Vy = projectileMotionPointsComputation.GetVelocityY(T);

            InResultUnits();
        }
示例#2
0
 public virtual ProjectileMotionPoint GetInitialPoint()
 {
     return(GetPoint(ProjectileMotionPointsComputation.GetTimeInitial()));
 }
示例#3
0
        private ProjectileMotionWithResistanceComputation(ProjectileMotionWithResistanceSettings settings)
        {
            Settings   = settings;
            IsNextReal = true;

            Point = new ProjectileMotionPoint(new ProjectileMotionSettings(Settings.Quantities), ProjectileMotionPointsComputation.GetTimeInitial());

            VyComputed = Point.Vy.GetBasicVal();
            VxComputed = Point.Vx.GetBasicVal();

            if (Point.Y.Val == 0 && Settings.Quantities.Α.Val == 0)
            {
                IsNextReal = false;
            }
        }
示例#4
0
 public Length GetDistance()
 {
     return(GetDistanceFromPoint(new ProjectileMotionPoint(Settings, ProjectileMotionPointsComputation.GetTimeInitial())));
 }