TMtxInt.MaxMin Method

void MaxMin(ref Int32 aMax, ref Int32 aMin)

Calculate minimum and maximum in one procedure call.

#NameDescription
1aMaxReturns calling vector maximum value.
2aMinReturns calling vector monimum value.

Result: stored in self (calling object)

Indexed: void MaxMin(ref Int32 aMax, ref Int32 aMin, Int32 Index, Int32 Len)

Calculate minimum and maximum in one procedure call.

#NameDescription
1aMaxReturns calling vector elements [Index..Index+Len-1] maximum value.
2aMinReturns calling vector elements [Index..Index+Len-1] minimum value.
3IndexThe starting index at which to start the search.
4LenThe number of elements to search starting from Index.

Result: stored in self (calling object)

Remarks:

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