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 Cartesian2D(string name, ILinearCollection x, ILinearCollection y, AxisType handedness) { if (x.Length != y.Length) { throw new NotImplementedException(); } this.m_Name = name; this.m_Handedness = handedness; this.m_X = (LinearCollection <T>)x.ChangeTo <T>(); this.m_Y = (LinearCollection <T>)y.ChangeTo <T>(); }
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>(); }