formZ SDK | 5.0 API Reference | System | Math

fz_math_2d_equ_from_pt_ang

Description

Given a 2d point and angle, calculates the 2d line equation (defined by it's slope and offset).
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_pt_ang(

fz_xy_td *

pt,

double

angle,

double *

line_a,

double *

line_c,

fzrt_int *

kase )

Parameters

pt [Input]

2d point

angle [Input]

angle

line_a [Result]

slope of 2d line equation

line_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