Method ClosestPolygonApproach
ClosestPolygonApproach(List<Vector3>, List<Vector3>, out Vector3, out Vector3, float)
Finds the closest points of the perimeters of two polygons.
Declaration
public static void ClosestPolygonApproach(List<Vector3> verticesA, List<Vector3> verticesB, out Vector3 pointA, out Vector3 pointB, float parallelTest = 0)
Parameters
Type | Name | Description |
---|---|---|
List<Vector3> | verticesA | Vertices defining the outline of polygon A. |
List<Vector3> | verticesB | Vertices defining the outline of polygon B. |
Vector3 | pointA | The point on polygon A closest to an edge of polygon B. |
Vector3 | pointB | The point on polygon B closest to an edge of polygon A. |
float | parallelTest | The minimum distance between closest approaches used to detect parallel line segments. |