BezierFrame
function · spline · primitive
- Address
0x453b90· 306 bytes, up to0x453cc1- Signature
void __thiscall (void *this, float t, float *frame)- Meaning
- Writes the point, tangent, normal and binormal at an arc-length parameter; slot 6
- Confidence
- verified, proof one
- Finding
- spline#frames
- Test
spline::frenet_frame_diff
Finding: Frames in spline
A frame is the tangent T at +0, the normal N at +0x10, the binormal B at +0x20 and the
position at +0x30; +0xc, +0x1c and +0x2c are untouched. N = (−T.y, T.x, 0) divided by its
length, B = T × N. The Bezier frame 0x453b90 takes the tangent from 0x453cd0 at the arc-length
parameter and writes it when its length is at least 0.01. The Catmull-Rom frame 0x454580 forms the
unit chord and in mode 0 uses it; otherwise it takes the derivative (0x454250). One shorter
than 0.01 leaves T as the frame held it; a longer or NaN one, made unit, is T unless its dot
with the chord is below 0.5, which takes the chord.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- LocateBezierByLength spline
- EvaluateBezierDerivative spline
- EvaluateBezierPoint spline
Calls and jumps by a bare address, from tables/calls.tsv.