Exemplo n.º 1
0
 public MagneticCalculations(MagneticCalculations other)
 {
     Date                = other.Date;
     Declination         = new MagneticValue(other.Declination);
     Inclination         = new MagneticValue(other.Inclination);
     HorizontalIntensity = new MagneticValue(other.HorizontalIntensity);
     NorthComp           = new MagneticValue(other.NorthComp);
     EastComp            = new MagneticValue(other.EastComp);
     VerticalComp        = new MagneticValue(other.VerticalComp);
     TotalField          = new MagneticValue(other.TotalField);
 }
Exemplo n.º 2
0
 public MagneticCalculations()
 {
     Date                = DateTime.Now;
     Declination         = new MagneticValue();
     Inclination         = new MagneticValue();
     HorizontalIntensity = new MagneticValue();
     NorthComp           = new MagneticValue();
     EastComp            = new MagneticValue();
     VerticalComp        = new MagneticValue();
     TotalField          = new MagneticValue();
 }
Exemplo n.º 3
0
        public MagneticCalculations(DateTime inDate, GeoMagVector fieldCalculations, GeoMagVector SecVarCalculations = null)
        {
            Date = inDate;

            Declination = new MagneticValue
            {
                Value         = fieldCalculations.d,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.d
            };

            Inclination = new MagneticValue
            {
                Value         = fieldCalculations.s,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.s
            };

            HorizontalIntensity = new MagneticValue
            {
                Value         = fieldCalculations.h,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.h
            };

            NorthComp = new MagneticValue
            {
                Value         = fieldCalculations.x,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.x
            };

            EastComp = new MagneticValue
            {
                Value         = fieldCalculations.y,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.y
            };

            VerticalComp = new MagneticValue
            {
                Value         = fieldCalculations.z,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.z
            };

            TotalField = new MagneticValue
            {
                Value         = fieldCalculations.f,
                ChangePerYear = SecVarCalculations == null ? 0 : SecVarCalculations.f
            };
        }
Exemplo n.º 4
0
 public MagneticValue(MagneticValue other)
 {
     Value         = other.Value;
     ChangePerYear = other.ChangePerYear;
 }