formZ SDK | 5.0 API Reference | System | Math

FZ_MATH_2D_INTERP_X

Description

Given a 2d line defined by two 2d points (_p1 and _p2) and a y value (_yval), interpolates the x value of the 2d point which is on the line at the given y value.

Plugin Prototype

#define FZ_MATH_2D_INTERP_X( _p1, _p2, _yval)

Parameters

fz_xy_td * _p1 [Input]

2d point 1 of line definition.

fz_xy_td * _p2 [Input]

2d point 2 of line definition.

double _yval [Input]

y value of point.

Returns

x value of the 2d point on the line that is shared by y.

Return Type: double

Availability

5.0.0.0

See Also

FZ_MATH_2D_VEC_LEN_SQUARED, FZ_MATH_2D_DIST_PT_PT_SQUARED, FZ_MATH_2D_PT_PT_DIST, FZ_MATH_2D_IS_EQUAL_PTS, FZ_MATH_2D_DOT_PROD, FZ_MATH_2D_CREATE_VEC, FZ_MATH_2D_SCALE_XY, FZ_MATH_2D_ADD_XY, FZ_MATH_2D_MID_PT, FZ_MATH_2D_INTERP_Y, FZ_MATH_2D_PT_SIDE_OF_LINE, FZ_MATH_2D_AREA_OF_3_PTS

Defined in

fz_math_api.h