formZ SDK | 5.0 API Reference | System | Math

fz_math_3x3_multiply_mat_unit_vec

Description

Transforms a 2d unit vector by a 3x3 matrix. If no_scale is TRUE, it assumes the matrix contains translation and rotation only and the result vector is not normalized again.
If no_scale is to FALSE, the result vector is normzlized.
If in doubt whether the matix contains a scale factor, set no_scale to FALSE.

Plugin Prototype

fzrt_error_td fz_math_3x3_multiply_mat_unit_vec(

fz_mat3x3_td *

mat,

fz_xy_td *

unit_vec,

fzrt_boolean

no_scale )

Parameters

mat [Input]

3x3 matrix

unit_vec [Input, Result]

2d unit vector

no_scale [Input]

TRUE if matrix doesn't contain a scale factor, FALSE if matrix does contain a scale factor

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_matrix.fsl

See Also

fz_math_4x4_multiply_mat_unit_vec

Function Set

fz_math_fset


Defined in

fz_math_api.h