formZ SDK | 5.0 API Reference | System | Math

# fz_math_4x4_multiply_mat_xyz_xyzw_array

Description

Mutiplies an array of 3d points by a 4x4 matrix.
Returns the resultant 4d points in the same array parameter as the input points (pts).
Note : although an array of 4d points, only x, y and z are used from the input points. 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_array(

fz_mat4x4_td * | mat,
fz_xyzw_td * | pts,
fzrt_int | knt )

Parameters

mat [Input]

4x4 matrix

pts [Input, Result]

points array
w not used on input

knt [Input]

number of points in array

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

, , 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