MatrixMultiplyAdd(DVector, Double, DVector) Method

Transforms a vector and adds an offset.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+d1268756e036101f601080f153b3997e72fc912d
C#
public DVector MultiplyAdd(
	DVector v,
	double scale,
	DVector add
)

Parameters

v  DVector
Vector to transform.
scale  Double
A scale factor for the vector to add.
add  DVector
Vector to add.

Return Value

DVector
this * v + scale * add.

Remarks

This method avoids allocating two temporary vectors.

See Also