using System; namespace Science.Physics.GeneralPhysics { /// /// ElectricCurrent /// public class ElectricCurrent : Scalar { public ElectricCurrent() { } public ElectricCurrent(Resistance R, ElectricPotentialDifference V) { this.Magnitude = V.V/R.Ohm; } public double A { get{return this.Magnitude;} set{this.Magnitude=value;} } private int from, to; public int FromJunction { get{return from;} set{from=value;} } public int ToJunction { get{return to;} set{to=value;} } public override string ToString() { return base.ToString() + "(A)"; } } }