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>(); }
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>(); }
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); }
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); }
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); }
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); }
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>(); }
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>(); }
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>(); }
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); }
public Ellipsoidal(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, IEllipsoid ellipsoid, AxisType handedness) : this("Geodetic", horizontalAngle, verticalAngle, ellipsoid, handedness) { }
public Spherical(ILinearCollection radius, IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness) : this("Shperical", radius, horizontalAngle, verticalAngle, handedness) { }
public Spherical(ILinearCollection radius, IAngularCollection horizontalAngle, IAngularCollection verticalAngle) : this(radius, horizontalAngle, verticalAngle, AxisType.RightHanded) { }
public Polar(ILinearCollection radius, IAngularCollection angle, AxisType handedness) : this("Polar", radius, angle, handedness) { }
public Polar(ILinearCollection radius, IAngularCollection angle) : this(radius, angle, AxisType.RightHanded) { }
public Ellipsoidal(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, IEllipsoid ellipsoid) : this(horizontalAngle, verticalAngle, ellipsoid, AxisType.RightHanded) { }
public Astronomical(IAngularCollection horizontalAngle, IAngularCollection verticalAngle) : this(horizontalAngle, verticalAngle, AxisType.RightHanded) { }
public Astronomical(IAngularCollection horizontalAngle, IAngularCollection verticalAngle, AxisType handedness) : this("Astronomic", horizontalAngle, verticalAngle, handedness) { }
public Geodetic(ILinearCollection height, IAngularCollection longitude, IAngularCollection latitude, IEllipsoid ellipsoid) : this(height, longitude, latitude, ellipsoid, AxisType.RightHanded) { }
public Geodetic(ILinearCollection height, IAngularCollection longitude, IAngularCollection latitude, IEllipsoid ellipsoid, AxisType handedness) : this("Geodetic", height, longitude, latitude, ellipsoid, handedness) { }