Share via


GeneralTransform3DTo2D.TryTransform(Point3D, Point) 方法

定义

变换指定的三维点并返回结果。

public:
 bool TryTransform(System::Windows::Media::Media3D::Point3D inPoint, [Runtime::InteropServices::Out] System::Windows::Point % result);
public bool TryTransform (System.Windows.Media.Media3D.Point3D inPoint, out System.Windows.Point result);
member this.TryTransform : System.Windows.Media.Media3D.Point3D * Point -> bool
Public Function TryTransform (inPoint As Point3D, ByRef result As Point) As Boolean

参数

inPoint
Point3D

要变换的三维点。

result
Point

变换 inPoint 的结果。

返回

如果 inPoint 已变换,则为 true;否则为 false

注解

Transform与 方法不同,如果转换不成功,此方法不会引发异常。

TryTransform在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

适用于