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