当前位置: 首页>>代码示例>>C#>>正文


C# IMathTransform.Invert方法代码示例

本文整理汇总了C#中IMathTransform.Invert方法的典型用法代码示例。如果您正苦于以下问题:C# IMathTransform.Invert方法的具体用法?C# IMathTransform.Invert怎么用?C# IMathTransform.Invert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IMathTransform的用法示例。


在下文中一共展示了IMathTransform.Invert方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Inverse

 /// <summary>
 /// Returns the inverse of this conversion.
 /// </summary>
 /// <returns>IMathTransform that is the reverse of the current conversion.</returns>
 public override IMathTransform Inverse()
 {
     if (_inverse == null)
     {
         _inverse = new ConcatenatedTransform(_CoordinateTransformationList);
         _inverse.Invert();
     }
     return _inverse;
 }
开发者ID:stophun,项目名称:fdotoolbox,代码行数:13,代码来源:ConcatenatedTransform.cs

示例2: TestForwardAndBackProjNet

        private static double[] TestForwardAndBackProjNet(IMathTransform transform, double[] ordinates,
            ref int succeed, ref int failed, ref int exception)
        {
            try
            {
                var forward = transform.Transform(ordinates);

                transform.Invert();
                var back = transform.Transform(ordinates);
                transform.Invert();

                if (Math.Abs(ordinates[0] - back[0]) <= Tolerance &&
                    Math.Abs(ordinates[1] - back[1]) <= Tolerance)
                {
                    succeed++;
                }
                else
                {
                    failed++;
                }

                return forward;
            }
            catch
            {
                exception++;
            }
            return ordinates;
        }
开发者ID:haoas,项目名称:ProjNet4GeoAPI,代码行数:29,代码来源:ComparisonTest.cs

示例3: Inverse

		/// <summary>
		/// Returns the inverse of this conversion.
		/// </summary>
		/// <returns>IMathTransform that is the reverse of the current conversion.</returns>
		public override IMathTransform Inverse()
		{
			if (_inverse == null)
			{
				_inverse = Clone();
				_inverse.Invert();
			}
			return _inverse;
		}
开发者ID:sridhar19091986,项目名称:sharpmapx,代码行数:13,代码来源:ConcatenatedTransform.cs

示例4: Inverse

 /// <summary>
 /// Creates the inverse transform of this object.
 /// </summary>
 /// <remarks>
 /// This method may fail if the transform is not one to one.
 /// </remarks>
 public override IMathTransform Inverse()
 {
     if (InverseTransform == null)
     {
         InverseTransform = new ConcatenatedTransform(_coordinateTransformationList);
         InverseTransform.Invert();
     }
     return InverseTransform;
 }
开发者ID:gkrsu,项目名称:maparound.core,代码行数:15,代码来源:Transformations.cs


注:本文中的IMathTransform.Invert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。