OptimumItemOptimized(IEnumerableVector3, Boolean, Boolean, Int32) Method

Returns the component-wise optimum vector from among the given vectors.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static Vector3 Optimized(
	IEnumerable<Vector3> vectors,
	bool minimize,
	bool maximize,
	out int selectedInd
)

Parameters

vectors  IEnumerableVector3
Vectors to select from.
minimize  Boolean
True if the maximum of a result value is to be found. If Maximize is also true then the result with the largest absolute value is sought.
maximize  Boolean
True if the maximum of a result value is to be found. If Minimize is also true then the result with the largest absolute value is sought.
selectedInd  Int32
index of the item which was selected.

Return Value

Vector3
Vector with smallest/largest component.

See Also