Table of Contents

Method b3PointToSegmentDistance

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3PointToSegmentDistance(Vector3, Vector3, Vector3)

Computes the closest point on the segment from a to b.

public static extern Vector3 b3PointToSegmentDistance(Vector3 a, Vector3 b, Vector3 q)

Parameters

a Vector3

The start of the segment.

b Vector3

The end of the segment.

q Vector3

The target point.

Returns

Vector3

The closest point on the segment.