using System; namespace Science.Physics.GeneralPhysics { /// /// Impulse /// public class Impulse : Vector { public Impulse() { } public Impulse(Momentum pi, Momentum pf) { this.X = pf.X - pi.X; this.Y = pf.Y - pi.Y; this.Z = pf.Z - pi.Z; } private Time time; private Force force = new Force(); public Time ImpactTime { get{return time;} set{time=value;} } public Force AverageForce { get { force.X = this.X/time.s; force.Y = this.Y/time.s; force.Z = this.Z/time.s; return force; } } public double kgmPERs { get{return this.Norm;} } public override string ToString() { return base.ToString() + "(kgm/s)"; } } }