SegmentLineDistance
function · cmath · unreached
- Address
0x7c43d0· 310 bytes, up to0x7c4505- Meaning
- Returns the distance between the line through a segment and a line given by an origin and a direction
- Confidence
- inferred
- Finding
- cmath/geometry#lines
Finding: Lines in cmath: intersections
0x7c4630(flag) returns the distance from the point in edx to the line through the origin at +0 and the direction at +0xc of the record in
ecx, as the length of (q − origin) × dir, divided by |dir| when the flag byte is 0. 0x7c4510 finds the closest points of two lines given
by an origin and a direction each: it writes the parameter on each line to two output pointers, and 0 for both when the squared cross product
of the directions is below 0.001 (the float at 0x801360). 0x7c43d0 uses it for the distance between a segment (endpoints at +0 and +0xc) and a line.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- SetVector3 spline
- Vector3LengthSquared spline
- SubtractVector3 ui
- AddVector3 objectlayer
- ClosestLineParameters cmath
Calls and jumps by a bare address, from tables/calls.tsv.