Vector2LengthSquared
function · spline · primitive
- Address
0x454980· 20 bytes, up to0x454993- Signature
float __thiscall (float *this)- Meaning
- Returns x*x + y*y of a 2D vector
- Confidence
- verified, proof one
- Finding
- spline#vector-leaves
- Test
spline::vec2_len2_diff
Finding: Vector leaves in spline
0x4549a0(x, y, z) stores three floats at ecx and is the constructor of the file's vector type,
with 401 call sites. 0x454980 leaves x² + y² of a vector in st0, and 0x4549f0 leaves
(x² + y²) + z², both at 53 bits. 0x4549c0(s) divides a vector in place: it computes 1/s at
53 bits once and stores each component times it as a float.
The derivation is in the doc.
Callers 4
- CatmullRomFrame spline
- CMovement::ComputeWallPush collision
- ComputeWallPushOut collision
- CMovement::FollowSpline collision
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.