2.5.4.51 IntersectY
The IntersectY function calculates the y-coordinate of the point where two lines intersect. Each line is defined by a point on the line and an angle.
ABNF:
-
IntersectY = val val val val val val " INTERSECTY():128"
Required Arguments:
Name: X1
Type: vDouble
An argument that specifies the x-coordinate of the point defining the first line.
Name: Y1
Type: vDouble
An argument that specifies the y-coordinate of the point defining the first line.
Name: Angle1
Type: vDouble
An argument that specifies the angle of the first line relative to the positive x-axis.
Name: X2
Type: vDouble
An argument that specifies the x-coordinate of the point defining the second line.
Name: Y2
Type: vDouble
An argument that specifies the y-coordinate of the point defining the second line.
Name: Angle2
Type: vDouble
An argument that specifies the angle of the second line relative to the positive x-axis.
Return Value:
This function returns a vNum containing the y-coordinate of the point where two lines intersect. If any of the arguments X1, Y1, X2, Y2 is a vUnitType, the unit of the return value is equal to the unit of the first of those arguments that is a vUnitType. If none of those arguments is a vUnitType, the function returns a PtgNum. If Angle1 equals Angle2, the function returns a PtgErr with an error code of #DIV/0.