RayHitTestParameters(Point3D, Vector3D) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个对象实例,该对象指定沿其进行命中测试的射线的起点和方向。
public:
RayHitTestParameters(System::Windows::Media::Media3D::Point3D origin, System::Windows::Media::Media3D::Vector3D direction);
public RayHitTestParameters (System.Windows.Media.Media3D.Point3D origin, System.Windows.Media.Media3D.Vector3D direction);
new System.Windows.Media.Media3D.RayHitTestParameters : System.Windows.Media.Media3D.Point3D * System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.RayHitTestParameters
Public Sub New (origin As Point3D, direction As Vector3D)
参数
- origin
- Point3D
作为射线起点的 Point3D。
- direction
- Vector3D
指示射线方向的 Vector3D。
注解
请注意,视觉层支持对点或几何图形下的所有对象进行命中测试,而不仅仅是最顶层的对象。 2D 命中测试还将直接在指定的点或几何图形下返回 3D 结果。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈