The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MakeValidTSlotRange


Unit: SDL_matrix
Class: TMat4D
Declaration: function MakeValidTSlotRange (var LowTSlot, HighTSlot: integer): integer;

The method MakeValidTSlotRange ensures that the matrix layer indexes LowTSlot and HighTSlot are within the valid index range of the matrix (i.e. they are greater or equal to 1 and less than or equal to NrOfTimeSlots). If any of the two variable parameters falls outside the valid range, it is adjusted to the nearest limit. Passing a zero value to both parameters returns the minimum and maximum range values (i.e. 1 and NrOfTimeSlots).

The function returns the following codes:

 0 ... both LowTSlot and HighTSlot are within the valid range, no adjustments made
-1 ... LowTSlot and/or HighTSlot have been adjusted because they were outside the valid range



Last Update: 2023-Feb-06