formZ SDK | 5.0 API Reference | System | Math

fz_math_3x3_solve

Description

3x2 matrix solver.
Input is a 3x2 matrix (last row of 3x3 matrix is unused). The rows of the matrix represent two equations in the form ax + by + c = 0 where a, b, c are the values in each row of the matrix.
The output is an 2d vector with the resulting values for x and y.

Plugin Prototype

fzrt_error_td fz_math_3x3_solve(

fz_mat3x3_td *

mat,

fz_xy_td *

vec )

Parameters

mat [Input]

3x2 matrix (last row unused)

vec [Result]

2d vector

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_4x4_solve

Function Set

fz_math_fset


Defined in

fz_math_api.h