Method GetX
GetX(float)
Solves the infinite line equation for X at a given Y.
public float GetX(float y)
Parameters
yfloatThe Y value to evaluate.
Returns
- float
The corresponding X value on the infinite line through this segment.
Remarks
This method does not clamp the result to the finite segment and may divide by zero for horizontal lines.