Click or drag to resize
AB4D logo

PlaneRayPlaneIntersection(Point3D, Vector3D, Point3D, Vector3D, Point3D) Method

RayPlaneIntersection calculates a position where the ray intersects a plane. Returns false if there is no intersection (in case ray direction is the same as plane's normal).

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static bool RayPlaneIntersection(
	Point3D rayOrigin,
	Vector3D rayDirection,
	Point3D pointOnPlane,
	Vector3D planeNormal,
	out Point3D intersectionPoint
)

Parameters

rayOrigin  Point3D
ray origin as Point3D
rayDirection  Vector3D
ray direction as Vector3D
pointOnPlane  Point3D
Point3D that lies on the plane
planeNormal  Vector3D
normal vector (perpendicular to the plane) that defines the orientation of the plane
intersectionPoint  Point3D
returned intersection position

Return Value

Boolean
Returns false is there is no intersection
See Also