TMtxInt.Ramp Method

function Ramp(Offset: Double; Step: Double; Index: Integer; Len: Integer): TMtxVecInt;

Fills the calling vector elements [Index]..[Index+Len-1].

#NameTypeDescription
1OffsetDoublescalar
2StepDoublescalar
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Method uses the following rule:

Values[k] := Offset + k*Step.

An exception is raised if calling vector array borders are overrun.