IritPrsrIsConvexPolygon
Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index
Return to Main Contents
NAME
IritPrsrIsConvexPolygon()
SYNOPSIS
prsr_lib/iritprs2.c:599
int IritPrsrIsConvexPolygon(IPPolygonStruct *Pl)
DESCRIPTION
Routine to test if the given polygon is convex (by IRIT definition) or
not.
Algorithm: The polygon is convex iff the normals generated from cross
products of two consecutive edges points to the same direction. The same
direction is tested by a positive dot product.
PARAMETERS:
Pl: To test for convexity.
FUNCTION RETURN VALUE
int: TRUE if PL convex, FALSE otherwise.
ORIGIN
(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- PARAMETERS:
-
- FUNCTION RETURN VALUE
-
- ORIGIN
-
This document was created by
man2html,
using the manual pages.
Time: 07:27:17 GMT, July 20, 2024