formZ SDK | 5.0 API Reference | System | Math

fz_math_2d_equ_from_line_pt_ang

Description

Given a line equation, a point on that line, and an angle, finds the line equation (defined by it's slope and offset) which goes through the point and encloses the given angle with the given line.
The optional kase parameter returns whether the line is horizontal (1), vertical (2) or at an arbitrary angle (0).

Plugin Prototype

fzrt_error_td fz_math_2d_equ_from_line_pt_ang(

double

line_in_a,

double

line_in_c,

fz_xy_td *

pt,

double

angle,

double *

line_out_a,

double *

line_out_c,

fzrt_int *

kase )

Parameters

line_in_a [Input]

slope of 2d line equation

line_in_c [Input]

offset of 2d line equation

pt [Input]

2d point

angle [Input]

angle

line_out_a [Result]

slope of 2d line equation

line_out_c [Result]

offset of 2d line equation

kase [Result, Optional]

information about the line equation

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

Function Set

fz_math_fset


Defined in

fz_math_api.h