formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_isect_circle_line_equ

Description

Calculates the intersection of a circle (defined by a center and radius) and a line equation (defined by it's slope and offset).
Note : int_pts must be an array that can hold 2 2d points. n_int_pts wil be returned as either 0, 1 or 2 and indicates how many points are stored in int_pts.

Plugin Prototype

fzrt_error_td fz_math_2d_isect_circle_line_equ(

fz_xy_td * | center,
double | radius,
double | line_equ_a,
double | line_equ_c,
fz_xy_td | int_pts[2],
fzrt_int * | n_int_pts )

Parameters

center [Input]

center of circle

radius [Input]

radius of circle

line_equ_a [Input]

slope of 2d line equation

line_equ_c [Input]

offset of 2d line equation

int_pts[2] [Result]

intersecting 2d points array

n_int_pts [Result]

number of intersecting points

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

, fz_math_2d_isect_line_segs, fz_math_2d_center_3pt_circle, fz_math_2d_equs_from_circle_tang

Function Set

fz_math_fset

Defined in

fz_math_api.h