Example #1
0
        public Astronomical(string name, IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness)
        {
            if (horizontalAngle.Length != verticalAngle.Length)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_HorizontalAngle = (AngularCollection <TAngular>)horizontalAngle.ChangeTo <TAngular>();

            this.m_VerticalAngle = (AngularCollection <TAngular>)verticalAngle.ChangeTo <TAngular>();
        }
Example #2
0
        public Polar(string name, ILinearCollection radius, IAngularCollection angle, AxisType handedness)
        {
            if (radius.Length != angle.Length)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_Radius = (LinearCollection <TLinear>)radius.ChangeTo <TLinear>();

            this.m_Angle = (AngularCollection <TAngular>)angle.ChangeTo <TAngular>();
        }
Example #3
0
        public Astronomical(string name, Matrix values, AxisType handedness, AngleRange horizontalRange)
        {
            if (values.NumberOfColumns != this.Dimension)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_HorizontalAngle = new AngularCollection <TAngular>(values.GetColumn(0), horizontalRange);

            this.m_VerticalAngle = new AngularCollection <TAngular>(values.GetColumn(1), AngleRange.MinusPiTOPi);
        }
Example #4
0
        public Polar(string name, Matrix values, AxisType handedness, AngleRange range)
        {
            if (values.NumberOfColumns != this.Dimension)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_Radius = new LinearCollection <TLinear>(values.GetColumn(0));

            this.m_Angle = new AngularCollection <TAngular>(values.GetColumn(1), range);
        }
Example #5
0
        public IAngularCollection Subtract(IAngularCollection array)
        {
            if (this.Length != array.Length)
            {
                throw new NotImplementedException();
            }

            AngularCollection <T> result = new AngularCollection <T>(this.Length, this.Range);

            for (int i = 0; i < this.Length; i++)
            {
                result.SetValue(i, this[i].Subtract(array[i]));
            }

            return(result);
        }
Example #6
0
        public Ellipsoidal(string name, Matrix values, AxisType handedness, AngleRange horizontalRange, IEllipsoid ellipsoid)
        {
            if (values.NumberOfColumns != this.Dimension)
            {
                throw new NotImplementedException();
            }

            this._name = name;

            this._handedness = handedness;

            this._datum = ellipsoid.ChangeTo <TLinear, TAngular>();

            this._horizontalAngle = new AngularCollection <TAngular>(values.GetColumn(0), horizontalRange);

            this._verticalAngle = new AngularCollection <TAngular>(values.GetColumn(1), AngleRange.MinusPiTOPi);
        }
Example #7
0
        public Ellipsoidal(string name, IAngularCollection horizontalAngle, IAngularCollection verticalAngle, IEllipsoid ellipsoid, AxisType handedness)
        {
            if (horizontalAngle.Length != verticalAngle.Length)
            {
                throw new NotImplementedException();
            }

            this._name = name;

            this._handedness = handedness;

            this._datum = ellipsoid.ChangeTo <TLinear, TAngular>();

            this._horizontalAngle = (AngularCollection <TAngular>)horizontalAngle.ChangeTo <TAngular>();

            this._verticalAngle = (AngularCollection <TAngular>)verticalAngle.ChangeTo <TAngular>();
        }
Example #8
0
        public Spherical(string name, ILinearCollection radius, IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness)
        {
            if (radius.Length != horizontalAngle.Length || radius.Length != verticalAngle.Length)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_Radius = (LinearCollection <TLinear>)radius.ChangeTo <TLinear>();

            this.m_HorizontalAngle = (AngularCollection <TAngular>)horizontalAngle.ChangeTo <TAngular>();

            this.m_VerticalAngle = (AngularCollection <TAngular>)verticalAngle.ChangeTo <TAngular>();
        }
Example #9
0
        public Geodetic(string name, ILinearCollection height, IAngularCollection longitude, IAngularCollection latitude, IEllipsoid ellipsoid, AxisType handedness)
        {
            if (height.Length != longitude.Length || height.Length != latitude.Length)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_Datum = ellipsoid.ChangeTo <TLinear, TAngular>();

            this.m_Height = (LinearCollection <TLinear>)height.ChangeTo <TLinear>();

            this.m_Longitude = (AngularCollection <TAngular>)longitude.ChangeTo <TAngular>();

            this.m_Latitude = (AngularCollection <TAngular>)latitude.ChangeTo <TAngular>();
        }
Example #10
0
        public Geodetic(string name, Matrix values, AxisType handedness, AngleRange longitudinalRange, IEllipsoid ellipsoid)
        {
            if (values.NumberOfColumns != this.Dimension)
            {
                throw new NotImplementedException();
            }

            this.m_Name = name;

            this.m_Handedness = handedness;

            this.m_Datum = ellipsoid.ChangeTo <TLinear, TAngular>();

            this.m_Height = new LinearCollection <TLinear>(values.GetColumn(0));

            this.m_Longitude = new AngularCollection <TAngular>(values.GetColumn(1), longitudinalRange);

            this.m_Latitude = new AngularCollection <TAngular>(values.GetColumn(2), AngleRange.MinusPiTOPi);
        }
Example #11
0
 public Ellipsoidal(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, IEllipsoid ellipsoid, AxisType handedness)
     : this("Geodetic", horizontalAngle, verticalAngle, ellipsoid, handedness)
 {
 }
Example #12
0
 public Spherical(ILinearCollection radius, IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness)
     : this("Shperical", radius, horizontalAngle, verticalAngle, handedness)
 {
 }
Example #13
0
 public Spherical(ILinearCollection radius, IAngularCollection horizontalAngle, IAngularCollection verticalAngle)
     : this(radius, horizontalAngle, verticalAngle, AxisType.RightHanded)
 {
 }
Example #14
0
 public Polar(ILinearCollection radius, IAngularCollection angle, AxisType handedness)
     : this("Polar", radius, angle, handedness)
 {
 }
Example #15
0
 public Polar(ILinearCollection radius, IAngularCollection angle)
     : this(radius, angle, AxisType.RightHanded)
 {
 }
Example #16
0
 public Ellipsoidal(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, IEllipsoid ellipsoid)
     : this(horizontalAngle, verticalAngle, ellipsoid, AxisType.RightHanded)
 {
 }
Example #17
0
 public Astronomical(IAngularCollection horizontalAngle, IAngularCollection verticalAngle)
     : this(horizontalAngle, verticalAngle, AxisType.RightHanded)
 {
 }
Example #18
0
 public Astronomical(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness)
     : this("Astronomic", horizontalAngle, verticalAngle, handedness)
 {
 }
Example #19
0
 public Geodetic(ILinearCollection height, IAngularCollection longitude, IAngularCollection latitude, IEllipsoid ellipsoid)
     : this(height, longitude, latitude, ellipsoid, AxisType.RightHanded)
 {
 }
Example #20
0
 public Geodetic(ILinearCollection height, IAngularCollection longitude, IAngularCollection latitude, IEllipsoid ellipsoid, AxisType handedness)
     : this("Geodetic", height, longitude, latitude, ellipsoid, handedness)
 {
 }