using System; namespace Science.Physics.GeneralPhysics { /// /// LorentzForce /// public class LorentzForce : Force { public LorentzForce(ElectricCharge q, ElectricField E, Velocity v, MagneticField B) : base() { this.X = q.C*E.X + q.C*(v.Y*B.Z - v.Z*B.Y); this.Y = q.C*E.Y + q.C*(v.Z*B.X - v.X*B.Z); this.Z = q.C*E.Z + q.C*(v.X*B.Y - v.Y*B.X); } public override string ToString() { return base.ToString(); } } }