Skip to content

Commit 219d304

Browse files
committed
very lame rename p1234 -> v1234
1 parent 3493376 commit 219d304

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/game/client/c_rope.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,12 +1506,12 @@ struct catmull_t
15061506
};
15071507

15081508
// bake out the terms of the catmull rom spline
1509-
void Catmull_Rom_Spline_Matrix( const Vector &p1, const Vector &p2, const Vector &p3, const Vector &p4, catmull_t &output )
1509+
void Catmull_Rom_Spline_Matrix( const Vector &v1, const Vector &v2, const Vector &v3, const Vector &v4, catmull_t &output )
15101510
{
1511-
output.t3 = 0.5f * ((-1*p1) + (3*p2) + (-3*p3) + p4); // 0.5 t^3 * [ (-1*p1) + ( 3*p2) + (-3*p3) + p4 ]
1512-
output.t2 = 0.5f * ((2*p1) + (-5*p2) + (4*p3) - p4); // 0.5 t^2 * [ ( 2*p1) + (-5*p2) + ( 4*p3) - p4 ]
1513-
output.t = 0.5f * ((-1*p1) + p3); // 0.5 t * [ (-1*p1) + p3 ]
1514-
output.c = p2; // p2
1511+
output.t3 = 0.5f * ((-1*v1) + (3*v2) + (-3*v3) + v4); // 0.5 t^3 * [ (-1*v1) + ( 3*v2) + (-3*v3) + v4 ]
1512+
output.t2 = 0.5f * ((2*v1) + (-5*v2) + (4*v3) - v4); // 0.5 t^2 * [ ( 2*v1) + (-5*v2) + ( 4*v3) - v4 ]
1513+
output.t = 0.5f * ((-1*v1) + v3); // 0.5 t * [ (-1*v1) + v3 ]
1514+
output.c = v2; // v2
15151515
}
15161516

15171517
// evaluate one point on the spline, t is a vector of (t, t^2, t^3)

0 commit comments

Comments
 (0)