You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecInt Class > TMtxVecInt Methods > MaxMin Method > TMtxVecInt.MaxMin Method (out int, out int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecInt.MaxMin Method (out int, out int, int, int)

Calculate minimum and maximum in one procedure call.

Syntax
C#
Visual Basic
public void MaxMin(out int aMax, out int aMin, int Index, int Len);
Parameters 
Description 
out int aMax 
Returns calling vector elements [Index..Index+Len-1] maximum value. 
out int aMin 
Returns calling vector elements [Index..Index+Len-1] minimum value. 
int Index 
The starting index at which to start the search. 
int Len 
The number of elements to search starting from Index. 

An exception is raised if array borders are overrun/underrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!