RayHitTestResult 类

定义

表示沿射线执行命中测试的结果。Represents the result of a hit test along a ray.

public ref class RayHitTestResult abstract : System::Windows::Media::HitTestResult
public abstract class RayHitTestResult : System.Windows.Media.HitTestResult
type RayHitTestResult = class
    inherit HitTestResult
Public MustInherit Class RayHitTestResult
Inherits HitTestResult
继承
RayHitTestResult
派生

注解

如果某个射线命中 MeshGeometry3D ,则可以将转换为的实例, RayMeshGeometry3DHitTestResult 以获取有关交集的更多详细信息。If a ray hits a MeshGeometry3D, you can cast to an instance of RayMeshGeometry3DHitTestResult to get even more detailed information about the intersection.

属性

DistanceToRayOrigin

获取命中交集与启动命中测试的 Visual3D 的内部坐标空间之间的距离。Gets the distance between the hit intersection and the inner coordinate space of the Visual3D which initiated the hit test.

ModelHit

获取与执行命中测试所沿的射线相交的 Model3D。Gets the Model3D intersected by the ray along which the hit test was performed.

PointHit

获取执行命中测试时采用的射线与命中对象的相交点处的 Point3D。Gets the Point3D at the intersection between the ray along which the hit test was performed and the hit object.

VisualHit

获取与沿其执行命中测试的射线相交的视觉对象。Gets the Visual intersected by the ray along which the hit test was performed.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于