CatmullRomFrame
function · spline · primitive
- Address
0x454580· 488 bytes, up to0x454767- Signature
void __thiscall (void *this, float t, float *frame)- Meaning
- Writes the tangent, normal, binormal and point at an arc-length parameter; slot 6
- Confidence
- verified, proof one
- Finding
- spline#frames
- Test
spline::frame_builder_linear_diff,spline::frame_builder_spline_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 7
- EvaluateCurvePosition spline
- EvaluateCatmullRomDerivative spline
- LocateCatmullRomByLength spline
- Vector2LengthSquared spline
- SetVector3 spline
- DivideVector3 spline
- Vector3LengthSquared spline
Calls and jumps by a bare address, from tables/calls.tsv.