DVectorCombine2 Method

Low-level method to linearly combine two vectors with weights.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
C#
public static DVector Combine2(
	double w1,
	double w2,
	DVector v1,
	DVector v2
)

Parameters

w1  Double
Weight for the first vector.
w2  Double
Weight for the second vector.
v1  DVector
First vector in the linear combination.
v2  DVector
Second vector in the linear combination.

Return Value

DVector
Returns the linear combination w1 * v1 + w2 * v2.

Remarks

This method is a frequent special case of the more general Combine(DVector, DVector).

See Also