| InterpolationHelperCosineInterpolation Method (VectorD, VectorD, Double) |
Performs a cosine interpolation between two
VectorD.
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static VectorD CosineInterpolation(
VectorD source,
VectorD target,
double parameter
)
Public Shared Function CosineInterpolation (
source As VectorD,
target As VectorD,
parameter As Double
) As VectorD
public:
static VectorD^ CosineInterpolation(
VectorD^ source,
VectorD^ target,
double parameter
)
static member CosineInterpolation :
source : VectorD *
target : VectorD *
parameter : float -> VectorD
Parameters
- source
- Type: DigitalRune.Mathematics.AlgebraVectorD
The source value. - target
- Type: DigitalRune.Mathematics.AlgebraVectorD
The target value. - parameter
- Type: SystemDouble
The interpolation parameter that lies in the interval [0,1]; also known as interpolation
factor or weight of the target value.
Return Value
Type:
VectorDThe cosine interpolation of two values.
Remarks CosineInterpolation(a, b, 0) returns a. CosineInterpolation(a, b, 1)
returns b.
See Also