Skip to content

Commit 8a3f043

Browse files
committed
uniform cubic hermite basis functions
1 parent 385605e commit 8a3f043

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Runtime/Splines/CharMatrix.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ public static class CharMatrix {
2929
-3, -2, 3, -1,
3030
2, 1, -2, 1
3131
);
32+
public static readonly Polynomial[] cubicHermitePositionBasisFunctions = {
33+
GetBasisFunction( cubicHermite, 0 ),
34+
GetBasisFunction( cubicHermite, 2 )
35+
};
36+
public static readonly Polynomial[] cubicHermiteVelocityBasisFunctions = {
37+
GetBasisFunction( cubicHermite, 1 ),
38+
GetBasisFunction( cubicHermite, 3 )
39+
};
3240

3341
/// <summary>The characteristic matrix of a uniform cubic catmull-rom curve</summary>
3442
public static readonly RationalMatrix4x4 cubicCatmullRom = new RationalMatrix4x4(

0 commit comments

Comments
 (0)