Calculates the intersection (if existing) between a line and a plane.

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static Nullable<Point3D> GetLinePlaneIntersection(
	Point3D linePoint,
	Vector3D lineDirection,
	LineType lineType,
	Point3D planePoint,
	Vector3D planeNormal
)
Visual Basic
Public Shared Function GetLinePlaneIntersection ( _
	linePoint As Point3D, _
	lineDirection As Vector3D, _
	lineType As LineType, _
	planePoint As Point3D, _
	planeNormal As Vector3D _
) As Nullable(Of Point3D)
JScript
public static function GetLinePlaneIntersection(
	linePoint : Point3D, 
	lineDirection : Vector3D, 
	lineType : LineType, 
	planePoint : Point3D, 
	planeNormal : Vector3D
) : Nullable<Point3D>

Parameters

linePoint
Type: System.Windows.Media.Media3D..::..Point3D
A Point3D belonging to the line.
lineDirection
Type: System.Windows.Media.Media3D..::..Vector3D
A Vector3D giving the direction of the line.
lineType
Type: LineType
The LineType to hit test.
planePoint
Type: System.Windows.Media.Media3D..::..Point3D
A Point3D belonging to the plane.
planeNormal
Type: System.Windows.Media.Media3D..::..Vector3D
A Vector3D normal to the plane.

Return Value

The intersection Point3D if existing,

Field Value

null otherwise.

Remarks

A plane is geometrically defined by a point belonging to it and a vector normal to the plane itself.

See Also