LocateBezierUniform
function · spline · primitive
- Address
0x453a30· 35 bytes, up to0x453a52- Signature
void __thiscall (void *this, float t, uint32_t *index, float *frac)- Meaning
- Locates t among the floor(count / 3) Bezier segments uniformly
- Confidence
- verified, proof one
- Finding
- spline#bezier-segments
Finding: Bezier segments in spline
The Bezier curve has ⌊count/3⌋ segments of four points sharing their ends, segment i using P[3i]
to P[3i + 3]. Slot 0 sums the segment lengths (0x453e70), slot 1 stores each as the arc length of
0x453e50. The point slots locate by arc length (0x453a60) or uniformly (0x453a30) and
evaluate with 0x453e30; the tangent slots do the same with 0x453cd0. No point or tangent slot
clamps t.
The derivation is in the doc.
Callers 2
- BezierPointUniform spline
- BezierTangentUniform spline
Callees 1
- LocateSplineSegmentUniform spline
Calls and jumps by a bare address, from tables/calls.tsv.