![]() |
• Math Library | ||||||||||||||
|
API Links
Developer Links
|
Math::PointInConvexPolygonDefined in:
Returns a value indicating whether a point lies within the interior of a convex polygon, lies on its boundary, or lies outside the polygon.
C4Computation.hPrototype
Parameters
Description
The PointInConvexPolygon function determines the location of the point given by the p parameter with respect to the polygon specified by the vertexCount and vertex parameters. The return value is one of the following constants.
vertex parameter should point to an array of Point3D objects of size given by the vertexCount parameter. These vertices should be wound in counterclockwise order about the normal direction specified by the normal parameter. The polygon must be convex and must lie in a plane that is perpendicular to the normal direction. If these requirements are not satisfied, then the result is undefined.
See Also
|