RayHitTestParameters(Point3D, Vector3D) Constructor

Definition

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

C#
public RayHitTestParameters(System.Windows.Media.Media3D.Point3D origin, System.Windows.Media.Media3D.Vector3D direction);

Parameters

origin
Point3D

Point3D at which the ray originates.

direction
Vector3D

Vector3D that indicates the direction of the ray.

Remarks

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.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also