本文整理匯總了C#中System.Windows.Media.Media3D.Visual3D.InternalTransformToAncestor方法的典型用法代碼示例。如果您正苦於以下問題:C# Visual3D.InternalTransformToAncestor方法的具體用法?C# Visual3D.InternalTransformToAncestor怎麽用?C# Visual3D.InternalTransformToAncestor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Media.Media3D.Visual3D
的用法示例。
在下文中一共展示了Visual3D.InternalTransformToAncestor方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: TransformToDescendant
/// <summary>
/// Returns a transform that can be used to transform coordinates from this
/// node to the specified descendant, or null if the transform from descendant to "this"
/// is non-invertible. This is the case when 2D is between the nodes.
///
/// </summary>
/// <exception cref="ArgumentException">
/// If the reference Visual3D is not a ancestor of the descendant Visual3D.
/// </exception>
/// <exception cref="ArgumentNullException">If the descendant argument is null.</exception>
/// <exception cref="InvalidOperationException">If the Visual3Ds are not connected.</exception>
public GeneralTransform3D TransformToDescendant(Visual3D descendant)
{
if (descendant == null)
{
throw new ArgumentNullException("descendant");
}
VerifyAPIReadOnly(descendant);
return descendant.InternalTransformToAncestor(this, true);
}