Class MatInterpolationKit
Provides functionality for interpolating between two transformation matrices.
public class MatInterpolationKit
- Inheritance
-
MatInterpolationKit
- Inherited Members
- Extension Methods
Constructors
MatInterpolationKit(Mat4d, Mat4d)
Initializes a new instance of the MatInterpolationKit class with two matrices.
public MatInterpolationKit(Mat4d m0, Mat4d m1)
Parameters
Properties
Mat0
Gets the first matrix.
public Mat4d Mat0 { get; }
Property Value
Mat1
Gets the second matrix.
public Mat4d Mat1 { get; }
Property Value
RotationAxisAngle
Gets the rotation axis and angle between the two matrices.
public AxisAngle4d RotationAxisAngle { get; }
Property Value
Trans
Gets the translation vector between the two matrices.
public Vec3d Trans { get; }
Property Value
Methods
GetInterpolation(double)
Gets an interpolated matrix between the two matrices.
public Mat4d GetInterpolation(double alpha)
Parameters
alpha
doubleThe interpolation factor between 0 and 1.
Returns
- Mat4d
The interpolated matrix.