Line2d.ProjectVertical Method

Computes the y position on a line for a given x. If the line is vertical, y parameter is not changed, and the function returns false.
public bool ProjectVertical( 
   double x
   ref double y 
)

Parameters

x
double

The x to compute for.

y
double

Y position on line or unchanged if the line is vertical.

Return Value

bool

true if a new y value could be computed, otherwise false (which means the line is vertical)

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition