Click or drag to resize

UtilIntersectRayPlane Method

Return intersection of the ray with plane defined by normal N, and P being a point on the plane.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Vector3 IntersectRayPlane(
	Ray ray,
	Vector3 P,
	Vector3 N
)

Parameters

ray
Type: Demo3D.VisualsRay
The ray.
P
Type: Microsoft.DirectXVector3
Point on plane.
N
Type: Microsoft.DirectXVector3
Normal to the plane.

Return Value

Type: Vector3
The intersection point.
Remarks

Note however, that if the line is parallel to the plane, some or all of the components of the Vector3 will be PositiveInfinity, NegativeInfinity or NaN.

See Also