OptimumItemOptimized(IEnumerableVector3, Boolean, Boolean, Int32) Method
Returns the component-wise optimum vector from among the given vectors.
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static Vector3 Optimized(
IEnumerable<Vector3> vectors,
bool minimize,
bool maximize,
out int selectedInd
)
Public Shared Function Optimized (
vectors As IEnumerable(Of Vector3),
minimize As Boolean,
maximize As Boolean,
<OutAttribute> ByRef selectedInd As Integer
) As Vector3
public:
static Vector3 Optimized(
IEnumerable<Vector3>^ vectors,
bool minimize,
bool maximize,
[OutAttribute] int% selectedInd
)
static member Optimized :
vectors : IEnumerable<Vector3> *
minimize : bool *
maximize : bool *
selectedInd : int byref -> Vector3
- 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.
Vector3Vector with smallest/largest component.