Пример #1
0
 private Inverse(GeographicGeocentricTransformation geographicGeocentric, GeocentricGeographicTransformation geocentricGeographic, MolodenskyBadekasGeographicTransformation core)
     : base(geographicGeocentric, geocentricGeographic)
 {
     _core = core;
     Contract.Requires(core != null);
     Contract.Requires(core.MolodenskyBadekas.HasInverse);
     Contract.Requires(geographicGeocentric != null);
     Contract.Requires(geocentricGeographic != null);
     _mbInverse = _core.MolodenskyBadekas.GetInverse();
 }
 private Inverse(GeographicGeocentricTransformation geographicGeocentric, GeocentricGeographicTransformation geocentricGeographic, GeocentricTransformationGeographicWrapper coreWrapper)
     : base(geographicGeocentric, geocentricGeographic)
 {
     Contract.Requires(coreWrapper != null);
     Contract.Requires(coreWrapper.GeocentricCore.HasInverse);
     Contract.Requires(geographicGeocentric != null);
     Contract.Requires(geocentricGeographic != null);
     _coreWrapper      = coreWrapper;
     _inverseOperation = coreWrapper.GeocentricCore.GetInverse();
 }
 public GeocentricTransformationGeographicWrapper(GeographicGeocentricTransformation geographicGeocentric, GeocentricGeographicTransformation geocentricGeographic, ITransformation <Point3> core)
     : base(geographicGeocentric, geocentricGeographic)
 {
     if (null == core)
     {
         throw new ArgumentNullException("core");
     }
     Contract.Requires(geographicGeocentric != null);
     Contract.Requires(geocentricGeographic != null);
     _core = core;
 }
Пример #4
0
 /// <summary>
 /// Creates a new geocentric to topocentric transformation.
 /// </summary>
 /// <param name="topocentricOrigin">The topocentric origin.</param>
 /// <param name="spheroid">The spheroid.</param>
 public GeocentricTopocentricTransformation(
     Point3 topocentricOrigin,
     ISpheroid <double> spheroid
     )
 {
     if (spheroid == null)
     {
         throw new ArgumentNullException("spheroid");
     }
     Contract.EndContractBlock();
     GeographicTransform = new GeographicGeocentricTransformation(spheroid);
     SetTopocentricOrigin(topocentricOrigin);
 }
Пример #5
0
 protected GeographicGeocentricTransformationBase(GeographicGeocentricTransformation geographicGeocentric, GeocentricGeographicTransformation geocentricGeographic)
 {
     if (null == geographicGeocentric)
     {
         throw new ArgumentNullException("geographicGeocentric");
     }
     if (null == geocentricGeographic)
     {
         throw new ArgumentNullException("geocentricGeographic");
     }
     Contract.EndContractBlock();
     GeographicToGeocentric = geographicGeocentric;
     GeocentricToGeographic = geocentricGeographic;
 }