Example #1
0
        public void TestMethod1()
        {
            Sun mysun = new Sun();
            Matrix<double> esVec = new Matrix<double>();

            esVec = mysun.getEarSunVec(20.0);

            esVec.GetRow(4);

        }
Example #2
0
 public Universe(XmlNode environmentNode){
     // Check the XMLNode for the presence of a child SUN node
     if (environmentNode["SUN"] != null)
     {
         // Create the Sun based on the XMLNode                
         XmlNode sunNode = environmentNode["SUN"];
         // Check the Sun XMLNode for the attribute
         if(sunNode.Attributes["isSunVectConstant"] != null)
         {
             bool sunVecConst = Convert.ToBoolean(sunNode.Attributes["isSunVecConstant"]);
             Sun = new Sun(sunVecConst);
         }
         Sun = new Sun();
     }
     else{
         Sun = new Sun();
     }
 }
Example #3
0
 public Universe(XmlNode environmentNode)
 {
     // Check the XMLNode for the presence of a child SUN node
     if (environmentNode["SUN"] != null)
     {
         // Create the Sun based on the XMLNode
         XmlNode sunNode = environmentNode["SUN"];
         // Check the Sun XMLNode for the attribute
         if (sunNode.Attributes["isSunVectConstant"] != null)
         {
             bool sunVecConst = Convert.ToBoolean(sunNode.Attributes["isSunVecConstant"]);
             Sun = new Sun(sunVecConst);
         }
         Sun = new Sun();
     }
     else
     {
         Sun = new Sun();
     }
 }
Example #4
0
 public Universe(Sun sun)
 {
     Sun = sun;
 }
Example #5
0
 public Universe()
 {
     Sun = new Sun(false);
 }
Example #6
0
 public Universe(Sun sun)
 {
     Sun = sun;
 }
Example #7
0
 public Universe(){
     Sun = new Sun(false);
 }
 protected override void CreateUniverse()
 {
     Sun   = new Sun(false);
     Atmos = new StandardAtmosphere();
 }