MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / spline_linear

Function spline_linear

ogsr_engine/xrGame/pose_extrapolation.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static void spline_linear(const point& p0, const point& p1, float t, pose& p)
35{
36 pose a0, a1;
37 spline_coefs_linar(p0, p1, a0, a1);
38
39 p = a0;
40 p.add(a1.mul(t));
41}
42
43void points::extrapolate(Fmatrix& m, float time) const
44{

Callers 1

extrapolateMethod · 0.85

Calls 3

spline_coefs_linarFunction · 0.85
addMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected