PointLineDistance
function · cmath · unreached
- Address
0x7c4630· 145 bytes, up to0x7c46c0- Meaning
- Returns the distance from a point to a line
- 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 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.