本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}