formZ SDK | 5.0 API Reference | System | Math

fz_math_2d_normalize_vec

Description

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

Plugin Prototype

fzrt_error_td fz_math_2d_normalize_vec(

fz_xy_td *

vec,

fz_xy_td *

unit_vec )

Parameters

vec [Input]

2d vector

unit_vec [Result]

normalized 2d vector

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

Function Set

fz_math_fset


Defined in

fz_math_api.h