using System; namespace Science.Physics.GeneralPhysics { /// /// Momentum /// public class Momentum : Vector { private void SetDim() { this.DimensionMass = 1; this.DimensionLength = 1; this.DimensionTime = -1; } public Momentum() { SetDim(); } public Momentum(Mass m, Velocity v) { SetDim(); if(v.XVariableQ) this.XVariableQ = true; if(v.YVariableQ) this.YVariableQ = true; if(v.ZVariableQ) this.ZVariableQ = true; this.X = m.kg*v.X; this.Y = m.kg*v.Y; this.Z = m.kg*v.Z; } public double kgmPERs { get{return this.Norm;} } public override string ToString() { return base.ToString() + "(kgm/s)"; } } }