UtilLineLineNearestPoints Method |
Finds a point on each line that determines the shortest line segment between the two
lines.
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static void LineLineNearestPoints(
Vector3 p1,
Vector3 d1,
Vector3 p2,
Vector3 d2,
out Vector3 c1,
out Vector3 c2
)
Parameters
- p1 Vector3
- A point on the first line.
- d1 Vector3
- The direction of the first line (must be unit vector).
- p2 Vector3
- A point on the second line.
- d2 Vector3
- The direction of the second line (must be unit vector).
- c1 Vector3
- The determined closest point on the first line.
- c2 Vector3
- The determined closest point on the second line.
See Also