Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsRayPlaneIntersection(Ray, Plane, Vector3) Method

RayPlaneIntersection calculates a position where a ray intersects a plane. Returns false if there is no intersection.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static bool RayPlaneIntersection(
	 in Ray ray,
	 in Plane plane,
	out Vector3 intersectionPoint
)

Parameters

ray  Ray
Ray
plane  Plane
Plane
intersectionPoint  Vector3
returned intersection position

Return Value

Boolean
Returns false is there is no intersection
See Also