benilla-re systems structs docs

EvaluateCubicPoint

function · spline · primitive

Address
0x453580 · 145 bytes, up to 0x453610
Signature
void __thiscall (void *this, uint32_t seg, float t, const float *table, float *out)
Meaning
Writes the sum of four control points weighted by a cubic basis at t
Confidence
verified, proof one
Finding
spline#point-and-derivative-kernels
Test
spline::eval_point_cubic_diff

Finding: Point and derivative kernels in spline

0x453620(t) with ecx the degree and edx a row evaluates the polynomial by Horner's rule at 53 bits: w = c0; for i in 1..degree { w = w·t + c[i] }. 0x453580(seg, t, table, out) sums the four weights times the control points P[seg] to P[seg + 3]; 0x453640 does the same with degree 2. Rows lie 16 bytes apart. Per point the x product stays at 53 bits, the y and z products are stored as floats, and each running sum is stored as a float.

The derivation is in the doc.

Callers 3

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.