formZ SDK | 5.0 API Reference | System | Math

# fz_math_4x4_solve

Description

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

Plugin Prototype

fzrt_error_td fz_math_4x4_solve(

fz_mat4x4_td * | mat,
fz_xyz_td * | vec )

Parameters

mat [Input]

4x3 matrix (last row unused)

vec [Result]

3d vector

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_3x3_solve

Function Set

fz_math_fset

Defined in

fz_math_api.h