Segment3D.Intersection (Segment3D, Segment3D, Boolean, out Point3D, out Point3D) Method

Gets the end points of the shortest segment perpendicular to two 3D segments, when it exists and is unique.
Public Shared Function Intersection( _ 
ByVal segA As Segment3D, _ 
ByVal segB As Segment3D, _ 
ByVal infinite As Boolean, _ 
ByRef pointOnA As Point3D, _ 
ByRef pointOnB As Point3D
) As Boolean
This language is not supported or no code example is available.
public static bool Intersection( 
Segment3D segA
Segment3D segB
bool infinite
out Point3D pointOnA
out Point3D pointOnB 
)
This language is not supported or no code example is available.

Parameters

segA
Segment3D

The first segment

segB
Segment3D

The second segment

infinite
bool

If true, the Segment3Ds are treated as an infinite lines

pointOnA
Point3D

The end point on segA

pointOnB
Point3D

The end point on segB

Return Value

bool

True if there is one shortest segment perpendicular to segA and segB, false otherwise.

Remarks
 
If pointOnA and pointOnB coincide, there is an intersection between the two segments. When the segments are parallel, it always returns false and the points are null.

.NET Framework

Supported in: 4.8

In this article

Definition