formZ SDK | 5.0 API Reference | System | Math

fz_math_2d_parl_line_equ

Description

Given a 2d line equation (defined by it's slope and offset), a left/right flag (left_side) and an offset, calculates the 2d line equation (defined by it's slope and offset) of a parallel 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_parl_line_equ(

double

line_in_a,

double

line_in_c,

double

offset,

fzrt_boolean

left_side,

double *

line_out_a,

double *

line_out_c,

fzrt_int *

kase )

Parameters

line_in_a [Input]

slope of original 2d line equation

line_in_c [Input]

offset of original 2d line equation

offset [Input]

offset of parallel line from original line

left_side [Input]

if TRUE, offset parallel line to the left of original line, otherwise offset to the right

line_out_a [Result]

slope of parallel 2d line equation

line_out_c [Result]

offset of parallel 2d line equation

kase [Result, Optional]

information about the line

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