| InterpolationHelperCosineInterpolation Method (Vector4D, Vector4D, Double) |
Performs a cosine interpolation between two
Vector4D.
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static Vector4D CosineInterpolation(
Vector4D source,
Vector4D target,
double parameter
)
Public Shared Function CosineInterpolation (
source As Vector4D,
target As Vector4D,
parameter As Double
) As Vector4D
public:
static Vector4D CosineInterpolation(
Vector4D source,
Vector4D target,
double parameter
)
static member CosineInterpolation :
source : Vector4D *
target : Vector4D *
parameter : float -> Vector4D
Parameters
- source
- Type: DigitalRune.Mathematics.AlgebraVector4D
The source value. - target
- Type: DigitalRune.Mathematics.AlgebraVector4D
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:
Vector4DThe cosine interpolation of two values.
Remarks CosineInterpolation(a, b, 0) returns a. CosineInterpolation(a, b, 1)
returns b.
See Also