iDRS™ SDK 16
Loading...
Searching...
No Matches
CPolygonUtils_interface.h
Go to the documentation of this file.
1
7#ifndef CPOLYGONUTILS_INTERFACE_H
8
9#define CPOLYGONUTILS_INTERFACE_H
10
11#include "CObjPtr_interface.h"
12#include "CIDRS_interface.h"
13#include "CPolygon_interface.h"
14
15#include "idrs_common.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
30IDRS_BOOL CPolygonUtils_ContainsPoint(const CPolygon argPolygon, const IDRS_POINT* stPoint, idrs_exception *pargException);
31
40IDRS_BOOL CPolygonUtils_IsRectangle(const CPolygon argPolygon, idrs_exception *pargException);
41
51IDRS_BOOL CPolygonUtils_IntersectsRectangle(const CPolygon argPolygon, const IDRS_RECT* argRectangle, idrs_exception *pargException);
52
62IDRS_BOOL CPolygonUtils_IntersectsPolygon(const CPolygon argPolygon1, const CPolygon argPolygon2, idrs_exception *pargException);
63
64#ifdef __cplusplus
65}
66#endif /* __cplusplus */
67
68#endif /* CPOLYGONUTILS_INTERFACE_H */
Interface for CIDRS wrapper.
Interface for CObjPtr wrapper.
Interface for CPolygon wrapper.
IDRS_BOOL CPolygonUtils_IntersectsPolygon(const CPolygon argPolygon1, const CPolygon argPolygon2, idrs_exception *pargException)
IntersectsPolygon tests if there's an intersection between the two given polygons.
IDRS_BOOL CPolygonUtils_IntersectsRectangle(const CPolygon argPolygon, const IDRS_RECT *argRectangle, idrs_exception *pargException)
IntersectsRectangle tests if a polygon intersects the given rectangle or not.
IDRS_BOOL CPolygonUtils_ContainsPoint(const CPolygon argPolygon, const IDRS_POINT *stPoint, idrs_exception *pargException)
ContainsPoint tests if a polygon contains the given point or not.
IDRS_BOOL CPolygonUtils_IsRectangle(const CPolygon argPolygon, idrs_exception *pargException)
IsRectangle tests if a polygon is a rectangle or not.
The CPolygon class handles polygons for iDRS.
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37
Structure defines the coordinates of a point in iDRS.
Definition idrsstd_interface.h:74
Structure that defines the upper-left and lower-right corners of a rectangle.
Definition idrsstd_interface.h:60