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