 |
MathUtilsRayPlaneIntersection Method |
RayPlaneIntersection calculates a position where a ray intersects a plane. Returns false if there is no intersection.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static bool RayPlaneIntersection(
in Vector3 rayOrigin,
in Vector3 rayDirection,
in Vector3 pointOnPlane,
in Vector3 planeNormal,
out Vector3 intersectionPoint
)
Parameters
- rayOrigin Vector3
- ray origin as Vector3
- rayDirection Vector3
- ray direction as Vector3
- pointOnPlane Vector3
- Vector3 that lies on the plane
- planeNormal Vector3
- normal vector (perpendicular to the plane) that defines the orientation of the plane
- intersectionPoint Vector3
- returned intersection position
Return Value
BooleanReturns false is there is no intersection
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MathUtils.RayPlaneIntersection(System.Numerics.Vector3@,System.Numerics.Vector3@,System.Numerics.Vector3@,System.Numerics.Vector3@,System.Numerics.Vector3@)"]
See Also