Method GetY
GetY(float)
Solves the infinite line equation for Y at a given X.
public float GetY(float x)
Parameters
xfloatThe X value to evaluate.
Returns
- float
The corresponding Y 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 vertical lines.