Calculates the intersection (if existing) between two 3D line primitives, being each one defined by two Point3Ds.

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> GetLinesIntersection(
	Point3D P1,
	Vector3D d1,
	LineType type1,
	Point3D P2,
	Vector3D d2,
	LineType type2,
	out LineIntersection intersection
)
Visual Basic
Public Shared Function GetLinesIntersection ( _
	P1 As Point3D, _
	d1 As Vector3D, _
	type1 As LineType, _
	P2 As Point3D, _
	d2 As Vector3D, _
	type2 As LineType, _
	<OutAttribute> ByRef intersection As LineIntersection _
) As Nullable(Of Point3D)
JScript
public static function GetLinesIntersection(
	P1 : Point3D, 
	d1 : Vector3D, 
	type1 : LineType, 
	P2 : Point3D, 
	d2 : Vector3D, 
	type2 : LineType, 
	intersection : LineIntersection
) : Nullable<Point3D>

Parameters

P1
Type: System.Windows.Media.Media3D..::..Point3D
A Point3D defining the first line primitive. Must be the origin point in the case of a ray or segment.
d1
Type: System.Windows.Media.Media3D..::..Vector3D
The Vector3D giving the direction of the first line primitive. Must specify the exact length in the case of a ray or a segment.
type1
Type: LineType
The LineType of the first line primitive.
P2
Type: System.Windows.Media.Media3D..::..Point3D
A Point3D defining the second line primitive. Must be the origin point in the case of a ray or segment.
d2
Type: System.Windows.Media.Media3D..::..Vector3D
The Vector3D giving the direction of the second line primitive. Must specify the exact length in the case of a ray or a segment.
type2
Type: LineType
The LineType of the second line primitive.
intersection
Type: LineIntersection%
The out parameter giving the LineIntersection detail.

Return Value

The computed intersection Point3D. Can be null if no intersection exists.

See Also