RayHitTestParameters Constructor (Point3D, Vector3D)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates an instance of the object that specifies the origin and direction of the ray along which to hit test.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public RayHitTestParameters(
	Point3D origin,
	Vector3D direction
)

Parameters

origin
Type: System.Windows.Media.Media3D.Point3D

Point3D at which the ray originates.

direction
Type: System.Windows.Media.Media3D.Vector3D

Vector3D that indicates the direction of the ray.

Note that the visual layer supports hit testing against all objects under a point or geometry, not just the topmost object. A 2D hit test will also return 3D results directly under the specified point or geometry.

.NET Framework
Available since 3.0
Return to top
Show: