EvaluateCurvePosition
function · spline · primitive
- Address
0x4541b0· 147 bytes, up to0x454242- Signature
void __thiscall (void *this, uint32_t seg, float f, float *out)- Meaning
- Writes the point of Catmull-Rom segment seg at f: the chord in mode 0, else the cubic
- Confidence
- verified, proof one
- Finding
- spline#catmull-rom-segments
- Test
spline::linear_pos_diff
Finding: Catmull-Rom segments in spline
The Catmull-Rom curve has count − 3 segments, segment i using P[i] to P[i + 3] and running
from P[i + 1] to P[i + 2]. Slot 0 sums the segment lengths (0x4543d0) and slot 1 stores each
as a float (0x4543e0). The point and tangent slots locate the segment and local parameter by arc
length (0x454380) or uniformly (0x4543b0), then evaluate the point (0x4541b0) or the tangent
(0x454250). The tangent slots clamp t into [0, 1]; the point slots do not. In mode 0 a segment
is the chord and its length the chord length; otherwise it is the cubic and its arc length.
The derivation is in the doc.
Callers 3
- CatmullRomPointByLength spline
- CatmullRomPointUniform spline
- CatmullRomFrame spline
Callees 1
- EvaluateCubicPoint spline
Calls and jumps by a bare address, from tables/calls.tsv.