formZ SDK | 5.0 API Reference | System | Math

fz_math_3d_normalize_vec

Description

Given a 3d vector, creates the normalized (unit) 3d vector.
Note : vec and unit_vec can be passed as the same pointer.

Plugin Prototype

fzrt_error_td fz_math_3d_normalize_vec(

fz_xyz_td *

vec,

fz_xyz_td *

unit_vec )

Parameters

vec [Input]

3d vector

unit_vec [Result]

normalized 3d vector

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

fz_math_2d_normalize_vec

Function Set

fz_math_fset


Defined in

fz_math_api.h