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(); }
public virtual ProjectileMotionPoint GetInitialPoint() { return(GetPoint(ProjectileMotionPointsComputation.GetTimeInitial())); }
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; } }
public Length GetDistance() { return(GetDistanceFromPoint(new ProjectileMotionPoint(Settings, ProjectileMotionPointsComputation.GetTimeInitial()))); }