Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetDistanceToPlane(Plane, Ray) Method

Returns distance of the specified Ray from this Plane. If distance is float.NaN, then Ray does not intersect the plane.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static float GetDistanceToPlane(
	 in Plane plane,
	 in Ray ray
)

Parameters

plane  Plane
Plane
ray  Ray
Ray

Return Value

Single
distance of the specified Ray from this Plane or float.NaN if Ray does not intersect the plane
See Also