MinimumEnclosure..::..GetLengthAndExtremeVertices Method

Given a Direction, dir, this function returns the maximum length along this Direction for the provided vertices as well as the two vertices that represent the extremes.

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static double GetLengthAndExtremeVertices(
	double[] direction,
	IList<Vertex> vertices,
	out List<Vertex> bottomVertices,
	out List<Vertex> topVertices
)
Public Shared Function GetLengthAndExtremeVertices ( _
	direction As Double(), _
	vertices As IList(Of Vertex), _
	<OutAttribute> ByRef bottomVertices As List(Of Vertex), _
	<OutAttribute> ByRef topVertices As List(Of Vertex) _
) As Double
public:
static double^ GetLengthAndExtremeVertices(
	array<double^>^ direction, 
	IList<Vertex^>^ vertices, 
	[OutAttribute] List<Vertex^>^% bottomVertices, 
	[OutAttribute] List<Vertex^>^% topVertices
)

Parameters

direction
Type: array<Double>[]()[][]
The direction.
vertices
Type: IList<(Of <(<'Vertex>)>)>
The vertices.
bottomVertices
Type: List<(Of <(<'Vertex>)>)>%
The bottom vertices.
topVertices
Type: List<(Of <(<'Vertex>)>)>%
The top vertices.

Return Value

System.Double.