Line2d.ProjectHorizontal Method

Computes the x position on a line for a given y. If the line is horizontal, x parameter is not changed, and the function returns false.
Public Function ProjectHorizontal( _ 
ByVal y As Double, _ 
ByRef x As Double
) As Boolean
This language is not supported or no code example is available.
public bool ProjectHorizontal( 
double y
out double x 
)
This language is not supported or no code example is available.
public:  
bool ProjectHorizontal( 
double y
double& x 
)
This language is not supported or no code example is available.
public function ProjectHorizontal( 
y : double
x : double 
) : boolean;
This language is not supported or no code example is available.

Parameters

y
double

The y to compute for.

x
double

X position on line or unchanged if the line is horizontal.

Return Value

bool

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

.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