formZ SDK | 5.0 API Reference | System | Math

# fz_math_3d_dir_of_3_pts

Description

Given three 3d points and a projection plane, determines whether the three points are in clockwise order, counterclockwise order or colinear / equal when projected on that plane.

Plugin Prototype

fzrt_int fz_math_3d_dir_of_3_pts(

fz_xyz_td * | p1,
fz_xyz_td * | p2,
fz_xyz_td * | p3,
fz_plane_enum | proj_plane )

Parameters

p1 [Input]

3d point 1

p2 [Input]

3d point 2

p3 [Input]

3d point 3

proj_plane [Input]

projection plane

Returns

1 if clockwise,
1 if counter clockwise,
0 if colinear or at least two points are equal

Availability

5.0.0.0

Example Files

util_math_3d.fsl

Function Set

fz_math_fset

Defined in

fz_math_api.h