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: 19.01.00
Syntax
C#
public static Vector3 IntersectRayPlane(
	Ray ray,
	Vector3 P,
	Vector3 N
)

Parameters

ray  Ray
The ray.
P  Vector3
Point on plane.
N  Vector3
Normal to the plane.

Return Value

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