TMtx.DivAndAdd Method

Overload List

#SignatureDescription
1function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TCplx): TMtxVec;self = X/Y + zScalar
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TCplx; Index: Integer; Len: Integer): TMtxVec;
2function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TCplx): TMtxVec;self = (X / Y) * xyScale + zScalar
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TCplx; Index: Integer; Len: Integer): TMtxVec;
3function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TMtxVec): TMtxVec;self = X/Y*xyScale + Z
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
4function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TMtxVec; const zScale: TCplx): TMtxVec;self = (X / Y)*xyScale + Z*zScale
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TMtxVec; zIndex: Integer; const zScale: TCplx; Index: Integer; Len: Integer): TMtxVec;
5function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec): TMtxVec;self = X/Y + Z
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
6function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec; const zScale: TCplx): TMtxVec;self = X/Y + Z*zScale
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; const zScale: TCplx; Index: Integer; Len: Integer): TMtxVec;
7function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec; const zScale: Double): TMtxVec;self = X/Y + Z*zScale
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; const zScale: Double; Index: Integer; Len: Integer): TMtxVec;
8function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: Double): TMtxVec;self = X/Y + zScalar
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: Double; Index: Integer; Len: Integer): TMtxVec;
9function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: TMtxVec): TMtxVec;self = X/Y*xyScale + Z
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
10function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: TMtxVec; const zScale: Double): TMtxVec;self = (X / Y)*xyScale + Z*zScale
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: TMtxVec; zIndex: Integer; const zScale: Double; Index: Integer; Len: Integer): TMtxVec;
11function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: Double): TMtxVec;self = (X / Y) * xyScale + zScalar
└ indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: Double; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TCplx): TMtxVec;

Compute X/Y + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTCplxscalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TCplx; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y + zScalar on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5ZTCplxscalar
6IndexIntegerstart index
7LenIntegerelement count

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

Overload 2: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TCplx): TMtxVec;

Compute (X / Y) * xyScale + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleTCplxscalar
4ZTCplxscalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TCplx; Index: Integer; Len: Integer): TMtxVec;

Compute (X / Y) * xyScale + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleTCplxscalar
6ZTCplxscalar
7IndexIntegerstart index
8LenIntegerelement count

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

Overload 3: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TMtxVec): TMtxVec;

Compute X/Y*xyScale + Z

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleTCplxscalar
4ZTMtxVecsource TVec or TMtx

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y*xyScale + Z on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleTCplxscalar
6ZTMtxVecsource TVec or TMtx
7zIndexInteger
8IndexIntegerstart index
9LenIntegerelement count

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

Overload 4: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: TCplx; const Z: TMtxVec; const zScale: TCplx): TMtxVec;

Compute (X / Y)*xyScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleTCplxscalar
4ZTMtxVecsource TVec or TMtx
5zScaleTCplxscalar

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

Remarks:

The following expression would also run at the same or higher speed, when passing Z also for the Y parameter:

(X / Z) xyScale + Z zScale

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: TCplx; const Z: TMtxVec; zIndex: Integer; const zScale: TCplx; Index: Integer; Len: Integer): TMtxVec;

Compute (X / Y)*xyScale + Z*zScale on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleTCplxscalar
6ZTMtxVecsource TVec or TMtx
7zIndexInteger
8zScaleTCplxscalar
9IndexIntegerstart index
10LenIntegerelement count

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

Overload 5: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec): TMtxVec;

Compute X/Y + Z

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTMtxVecsource TVec or TMtx

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y + Z on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5ZTMtxVecsource TVec or TMtx
6zIndexInteger
7IndexIntegerstart index
8LenIntegerelement count

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

Overload 6: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec; const zScale: TCplx): TMtxVec;

Compute X/Y + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTMtxVecsource TVec or TMtx
4zScaleTCplxscalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; const zScale: TCplx; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y + Z*zScale on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5ZTMtxVecsource TVec or TMtx
6zIndexInteger
7zScaleTCplxscalar
8IndexIntegerstart index
9LenIntegerelement count

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

Overload 7: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: TMtxVec; const zScale: Double): TMtxVec;

Compute X/Y + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTMtxVecsource TVec or TMtx
4zScaleDoublescalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: TMtxVec; zIndex: Integer; const zScale: Double; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y + Z*zScale on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5ZTMtxVecsource TVec or TMtx
6zIndexInteger
7zScaleDoublescalar
8IndexIntegerstart index
9LenIntegerelement count

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

Overload 8: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const Z: Double): TMtxVec;

Compute X/Y + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZDoublescalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const Z: Double; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y + zScalar on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5ZDoublescalar
6IndexIntegerstart index
7LenIntegerelement count

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

Overload 9: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: TMtxVec): TMtxVec;

Compute X/Y*xyScale + Z

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleDoublescalar
4ZTMtxVecsource TVec or TMtx

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: TMtxVec; zIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Compute X/Y*xyScale + Z on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleDoublescalar
6ZTMtxVecsource TVec or TMtx
7zIndexInteger
8IndexIntegerstart index
9LenIntegerelement count

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

Overload 10: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: TMtxVec; const zScale: Double): TMtxVec;

Compute (X / Y)*xyScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleDoublescalar
4ZTMtxVecsource TVec or TMtx
5zScaleDoublescalar

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

Remarks:

The following expression would also run at the same or higher speed, when passing Z also for the Y parameter:

(X / Z) xyScale + Z zScale

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: TMtxVec; zIndex: Integer; const zScale: Double; Index: Integer; Len: Integer): TMtxVec;

Compute (X / Y)*xyScale + Z*zScale on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleDoublescalar
6ZTMtxVecsource TVec or TMtx
7zIndexInteger
8zScaleDoublescalar
9IndexIntegerstart index
10LenIntegerelement count

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

Overload 11: function DivAndAdd(const X: TMtxVec; const Y: TMtxVec; const xyScale: Double; const Z: Double): TMtxVec;

Compute (X / Y) * xyScale + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3xyScaleDoublescalar
4ZDoublescalar

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

Indexed: function DivAndAdd(const X: TMtxVec; XIndex: Integer; const Y: TMtxVec; YIndex: Integer; const xyScale: Double; const Z: Double; Index: Integer; Len: Integer): TMtxVec;

Compute (X / Y) * xyScale + zScalar

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexIntegerX start index
3YTMtxVecsource TVec or TMtx
4YIndexIntegerY start index
5xyScaleDoublescalar
6ZDoublescalar
7IndexIntegerstart index
8LenIntegerelement count

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