Table of Contents

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

p1 Vector3

The start of the first segment.

q1 Vector3

The end of the first segment.

p2 Vector3

The start of the second segment.

q2 Vector3

The end of the second segment.

Returns

b3SegmentDistanceResult

The closest points and their parametric coordinates.