formZ SDK | 5.0 API Reference | System | Math

fz_math_4x4_multiply_mat_xyz_xyzw

Description

Mutiplies a 3d point by a 4x4 matrix.
Returns the resultant 4d point in the same parameter as the input point (pt).
Note : although a 4d point, only x, y and z are used from the input point. Since multiplying a 3d point by a 4x4 results in a 4x1 vector, the w of the output point is calculated.

Plugin Prototype

fzrt_error_td fz_math_4x4_multiply_mat_xyz_xyzw(

fz_mat4x4_td *

mat,

fz_xyzw_td *

pt )

Parameters

mat [Input]

4x4 matrix

pt [Input, Result]

point
w not used on input

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_4x4_multiply_mat_xyz_xyzw_array, , fz_math_4x4_multiply_mat_xyzw_array, ,, , fz_math_4x4_multiply_mat_xy_array, fz_math_4x4_multiply_mat_unit_vec

Function Set

fz_math_fset


Defined in

fz_math_api.h