Method b3SegmentDistance
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3SegmentDistance(Vector3, Vector3, Vector3, Vector3)
Computes the closest points on two line segments.
public static extern b3SegmentDistanceResult b3SegmentDistance(Vector3 p1, Vector3 q1, Vector3 p2, Vector3 q2)Parameters
p1Vector3-
The start of the first segment.
q1Vector3-
The end of the first segment.
p2Vector3-
The start of the second segment.
q2Vector3-
The end of the second segment.
Returns
- b3SegmentDistanceResult
-
The closest points and their parametric coordinates.