Click or drag to resize

MatrixInterpolatorInterpolate(Double, Double, Double) Method

Return the interpolated matrix "between" From and To based on the 0..1 components of the translation, rotation, and scale.

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.00.00
Syntax
C#
public Matrix Interpolate(
	double t,
	double r,
	double s
)

Parameters

t  Double
Value between 0 and 1 for how much translation component to include (snapped to range [0, 1]).
r  Double
Value between 0 and 1 for how much rotation component to include (snapped to range [0, 1]).
s  Double
Value between 0 and 1 for how much scale component to include (snapped to range [0, 1]).

Return Value

Matrix
if <= 0 return From, if >= 1 return To, otherwise interpolated matrix.
See Also