formZ SDK | 5.0 API Reference | System | Math

fz_math_2d_center_3pt_circle

Description

Finds the center point for a circle, defined by three 2d points.

Plugin Prototype

fzrt_error_td fz_math_2d_center_3pt_circle(

fz_xy_td *

p1,

fz_xy_td *

p2,

fz_xy_td *

p3,

fz_xy_td *

center )

Parameters

p1 [Input]

2d point 1

p2 [Input]

2d point 2

p3 [Input]

2d point 3

center [Result]

center of circle

Returns

Error codes
FZ_MATH_ERR_VEC_PARALLEL - the three circle points are colinear
FZ_MATH_ERR_ZERO_LEN_VEC - at least two of the input points are equal

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

, fz_math_2d_equs_from_circle_tang

Function Set

fz_math_fset


Defined in

fz_math_api.h