formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_perp_vec

Description

Given a 2d vector, returns the perpendicular 2d vector. This is equivalent to the cross product of two 3d vectors. The resulting vector is NOT normalized.
Note : vec and norm can be passed as the same pointer.

Plugin Prototype

fzrt_error_td fz_math_2d_perp_vec(

fz_xy_td * | vec,
fz_xy_td * | norm )

Parameters

vec [Input]

2d vector

norm [Result]

perpendicular 2d vector (not normalized)

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

fz_math_3d_cross_prod

Function Set

fz_math_fset

Defined in

fz_math_api.h