formZ SDK | 5.0 API Reference | System | Math

fz_math_3d_create_unit_vec

Description

Creates a unit length 3d vector from two 3d points.

Plugin Prototype

fzrt_error_td fz_math_3d_create_unit_vec(

fz_xyz_td *

pt1,

fz_xyz_td *

pt2,

fz_xyz_td *

unit_vec )

Parameters

pt1 [Input]

3d point 1

pt2 [Input]

3d point 2

unit_vec [Result]

unit length 3d vector

Returns

Error codes
FZ_MATH_ERR_ZERO_LEN_VEC - the two 3d points are equal

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

fz_math_2d_create_unit_vec

Function Set

fz_math_fset


Defined in

fz_math_api.h