using System; namespace Science.Physics.GeneralPhysics { /// /// Mirror /// public class Mirror { public Mirror() { } private double r, f, p, q; public double Radius { get{return r;} set{r=value;f=0.5*r;} } public double FocalLength { get{return f;} set{f=value;} } public double ObjectDistance { get{return p;} set{p=value;} } public double ImageDistance { get{return q;} set{q=value;} } public void FindImageDistance() { q = 1.0/(1.0/f - 1.0/p); } } }